--------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/enforce_remit.log
  log type:  text
 opened on:  24 Nov 2023, 11:54:26

. 
. /***** Compute descriptive statistics and generate maps. *****/
. /* Import the data */
. use "$data/prelim.dta", clear

. /* Edit labels to enable indentation in LateX */
. label var rem "\hspace{0.5cm} Remittances (USD mil.)"

. label var dpt_tot_prop "\hspace{0.5cm} Deportations" 

. label var sc_cons_raw "\hspace{0.5cm} Policy $\times$ Partisanship"

. label var active_exp "\hspace{0.5cm} Policy"

. label var cons_exp_raw "\hspace{0.5cm} Partisanship" 

. label var pop "\hspace{0.5cm} Population (mil.)"

. label var ann_pr_mx "\hspace{0.5cm} Precipitation (mm)"

. label var avg_tmp_mx "\hspace{0.5cm} Temperature (ºC)"

. /*** Compute and translate descriptive statistics to LateX. In LateX, move code \bottomrule, \end{tabu
> lar}, and \end{table} to bottom of table. Next, establish 'article' as document class. After, install 
> 'booktabs' and 'threeparttable' packages. Then add \begin{document} and \end{document} appropriately. 
> Finally, set text in \scriptsize  ****/
. /* Descriptive statistics for full time period */
. estpost tabstat rem dpt_tot_prop sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx, c(stat)
>  stat(n min p50 mean max sd)

Summary statistics: count min p50 mean max sd
     for variables: rem dpt_tot_prop sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx

             |  e(count)     e(min)     e(p50)    e(mean)     e(max)      e(sd) 
-------------+------------------------------------------------------------------
         rem |       480    17.8008   468.0145     691.81   2745.429   614.9756 
dpt_tot_prop |       480   134.6609   5108.305   6697.875   34645.13   5832.138 
 sc_cons_raw |       480          0   1.652918   4.598351   20.80023   5.644682 
  active_exp |       480          0        1.6   2.188262   7.133333   2.279328 
cons_exp_raw |       480     .73762   2.047864   1.977786   3.444363   .6597555 
         pop |       480   .4769184   2.712876   3.488565   16.44745   2.935217 
   ann_pr_mx |       480   15.68462   782.1321   843.9561     4082.4   500.5496 
  avg_tmp_mx |       480      6.475   20.85206   20.11452   27.15595   4.453782 

. esttab using "$data/desc.tex", replace refcat(rem "\emph{2003-2017}", nolabel) cells("count min(fmt(%1
> 2.3fc)) p50(fmt(%12.3fc)) mean(fmt(%12.3fc)) max(fmt(%12.3fc)) sd(fmt(%12.3fc))") nonumber nomtitle no
> note noobs label booktabs collabels("N" "Minimum" "Median" "Mean" "Maximum" "Standard Deviation") titl
> e("Descriptive Statistics")
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/desc.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/desc.tex)

. /* Descriptive statistics prior to Secure Communities in 2008 */
. estpost tabstat rem dpt_tot_prop sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx if yr<20
> 08, c(stat) stat(n min p50 mean max sd)

Summary statistics: count min p50 mean max sd
     for variables: rem dpt_tot_prop sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx

             |  e(count)     e(min)     e(p50)    e(mean)     e(max)      e(sd) 
-------------+------------------------------------------------------------------
         rem |       160    17.8008    404.709   667.4022   2503.692   627.5632 
dpt_tot_prop |       160    224.952   3410.039   4117.913   16595.64   2955.931 
 sc_cons_raw |       160          0          0          0          0          0 
  active_exp |       160          0          0          0          0          0 
cons_exp_raw |       160     .79247   2.237267   2.136104   3.444363   .7076651 
         pop |       160   .4769184   2.476886    3.23933   14.47484   2.765945 
   ann_pr_mx |       160   117.0154   898.6714   992.2558     4082.4   577.1001 
  avg_tmp_mx |       160     11.725   21.25599   20.76106   27.00774    3.77213 

. esttab using "$data/desc.tex", append refcat(rem "\emph{2003-2007}", nolabel) cells("count min(fmt(%12
> .3fc)) p50(fmt(%12.3fc)) mean(fmt(%12.3fc)) max(fmt(%12.3fc)) sd(fmt(%12.3fc))") nonumber nomtitle non
> ote noobs label booktabs collabels(none) fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/desc.tex)

. /* Descriptive statistics for period of Secure Communities */
. estpost tabstat rem dpt_tot_prop sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx if yr>=2
> 008, c(stat) stat(n min p50 mean max sd)

Summary statistics: count min p50 mean max sd
     for variables: rem dpt_tot_prop sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx

             |  e(count)     e(min)     e(p50)    e(mean)     e(max)      e(sd) 
-------------+------------------------------------------------------------------
         rem |       320    31.2434   501.5377    704.014   2745.429   609.2098 
dpt_tot_prop |       320   134.6609   6537.469   7987.856   34645.13    6458.42 
 sc_cons_raw |       320          0   6.105099   6.897526   20.80023   5.651128 
  active_exp |       320          0   3.669114   3.282393   7.133333    2.04903 
cons_exp_raw |       320     .73762   1.990388   1.898627   3.194113   .6205892 
         pop |       320   .5870836   2.792022   3.613183   16.44745    3.01277 
   ann_pr_mx |       320   15.68462   722.8728   769.8063    2019.57   440.0806 
  avg_tmp_mx |       320      6.475   20.69915   19.79125   27.15595   4.730611 

. esttab using "$data/desc.tex", append refcat(rem "\emph{2008-2017}", nolabel) cells("count min(fmt(%12
> .3fc)) p50(fmt(%12.3fc)) mean(fmt(%12.3fc)) max(fmt(%12.3fc)) sd(fmt(%12.3fc))") nonumber nomtitle non
> ote noobs label booktabs collabels(none) fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/desc.tex)

. /* Twoway scatter plot of deportations on the instrument */
. graph set window fontface "Times New Roman"

. twoway (scatter dpt_tot_prop sc_cons_raw, mcolor(black) msymbol(Oh) xtitle("Policy × Partisanship", si
> ze(vlarge)) ytitle("Deportations", size(vlarge)) ylabel(, nogrid) graphregion(fcolor(white) lcolor(whi
> te) lwidth(vvvthick) ifcolor(white) ilcolor(white) ilwidth(vvvthick))) (lfit dpt_tot_prop sc_cons_raw,
>  lcolor(black)), legend(off)

. graph export "$data/tw_dpt_ins_con.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/tw_dpt_ins_con.png saved as PNG format

. /* Twoway scatter plot of remittances on deportations */
. twoway (scatter rem dpt_tot_prop, mcolor(black) msymbol(Oh) xtitle("Deportations", size(vlarge)) ytitl
> e("Remittance inflows (USD mil.)", size(vlarge)) ylabel(, nogrid) graphregion(fcolor(white) lcolor(whi
> te) lwidth(vvvthick) ifcolor(white) ilcolor(white) ilwidth(vvvthick))) (lfit rem dpt_tot_prop, lcolor(
> black)), legend(off)

. graph export "$data/tw_rem_dpt.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/tw_rem_dpt.png saved as PNG format

. /* Check multicollinearity among the explanatory variables. Install package 'collin' from UCLA. */
.         // search collin
. collin sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx
(obs=480)

  Collinearity Diagnostics

                        SQRT                   R-
  Variable      VIF     VIF    Tolerance    Squared
----------------------------------------------------
sc_cons_raw     22.22    4.71    0.0450      0.9550
active_exp     20.66    4.55    0.0484      0.9516
cons_exp_raw      1.79    1.34    0.5592      0.4408
       pop      1.29    1.14    0.7757      0.2243
 ann_pr_mx      1.61    1.27    0.6214      0.3786
avg_tmp_mx      1.61    1.27    0.6203      0.3797
----------------------------------------------------
  Mean VIF      8.20

                           Cond
        Eigenval          Index
---------------------------------
    1     5.3933          1.0000
    2     0.9586          2.3719
    3     0.3665          3.8361
    4     0.1905          5.3212
    5     0.0637          9.2020
    6     0.0187         16.9902
    7     0.0087         24.8742
---------------------------------
 Condition Number        24.8742 
 Eigenvalues & Cond Index computed from scaled raw sscp (w/ intercept)
 Det(correlation matrix)    0.0239

. pwcorr sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx

             | sc_con~w active~p cons_e~w      pop ann_pr~x avg_tm~x
-------------+------------------------------------------------------
 sc_cons_raw |   1.0000 
  active_exp |   0.9613   1.0000 
cons_exp_raw |   0.3413   0.1802   1.0000 
         pop |   0.0550   0.0724   0.0535   1.0000 
   ann_pr_mx |  -0.2262  -0.2301  -0.2065   0.1640   1.0000 
  avg_tmp_mx |  -0.1421  -0.1725  -0.1076  -0.2945   0.4795   1.0000 

. 
. 
. 
. /***** Maps of Mexico. *****/
. /*** Preliminary steps ***/
. /* Put shapefile into workable form */
. shp2dta using "$data/mexstates/mexstates.shp", database("$data/mxdata1A.dta") coordinates("$data/mxcoo
> rd1.dta") gencentroids(coord) genid(id) replace
type: 5

. /* Import workable shapefile */
. use "$data/mxdata1A.dta", clear

. /* Set states' names in lower case*/
. replace ADMIN_NAME = lower(trim(ADMIN_NAME))
(32 real changes made)

. /* Add abbreviated names */
. sort ADMIN_NAME

. gen st_mx = ""
(32 missing values generated)

. replace st_mx="AGS" if ADMIN_NAME=="aguascalientes"
variable st_mx was str1 now str3
(1 real change made)

. replace st_mx="BCN" if ADMIN_NAME=="baja california"
(1 real change made)

. replace st_mx="BCS" if ADMIN_NAME=="baja california sur"
(1 real change made)

. replace st_mx="CAM" if ADMIN_NAME=="campeche"
(1 real change made)

. replace st_mx="CHI" if ADMIN_NAME=="chihuahua"
(1 real change made)

. replace st_mx="CHS" if ADMIN_NAME=="chiapas"
(1 real change made)

. replace st_mx="COA" if ADMIN_NAME=="coahuila"
(1 real change made)

. replace st_mx="COL" if ADMIN_NAME=="colima"
(1 real change made)

. replace st_mx="DFE" if ADMIN_NAME=="distrito federal"
(1 real change made)

. replace st_mx="DGO" if ADMIN_NAME=="durango"
(1 real change made)

. replace st_mx="GRO" if ADMIN_NAME=="guerrero"
(1 real change made)

. replace st_mx="GTO" if ADMIN_NAME=="guanajuato"
(1 real change made)

. replace st_mx="HGO" if ADMIN_NAME=="hidalgo"
(1 real change made)

. replace st_mx="JAL" if ADMIN_NAME=="jalisco"
(1 real change made)

. replace st_mx="MEX" if ADMIN_NAME=="mexico"
(1 real change made)

. replace st_mx="MIC" if ADMIN_NAME=="michoacan"
(1 real change made)

. replace st_mx="MOR" if ADMIN_NAME=="morelos"
(1 real change made)

. replace st_mx="NAY" if ADMIN_NAME=="nayarit"
(1 real change made)

. replace st_mx="NLE" if ADMIN_NAME=="nuevo leon"
(1 real change made)

. replace st_mx="OAX" if ADMIN_NAME=="oaxaca"
(1 real change made)

. replace st_mx="PUE" if ADMIN_NAME=="puebla"
(1 real change made)

. replace st_mx="QRO" if ADMIN_NAME=="queretaro"
(1 real change made)

. replace st_mx="ROO" if ADMIN_NAME=="quintana roo"
(1 real change made)

. replace st_mx="SIN" if ADMIN_NAME=="sinaloa"
(1 real change made)

. replace st_mx="SLP" if ADMIN_NAME=="san luis potosi"
(1 real change made)

. replace st_mx="SON" if ADMIN_NAME=="sonora"
(1 real change made)

. replace st_mx="TAB" if ADMIN_NAME=="tabasco"
(1 real change made)

. replace st_mx="TAM" if ADMIN_NAME=="tamaulipas"
(1 real change made)

. replace st_mx="TLA" if ADMIN_NAME=="tlaxcala"
(1 real change made)

. replace st_mx="VER" if ADMIN_NAME=="veracruz"
(1 real change made)

. replace st_mx="YUC" if ADMIN_NAME=="yucatan"
(1 real change made)

. replace st_mx="ZAC" if ADMIN_NAME=="zacatecas"
(1 real change made)

. save "$data/mxdata1B.dta", replace
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/mxdata1B.dta not found)
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/mxdata1B.dta saved

. 
. /*** Map of remittance inflows by Mexican state ***/
. use "$data/prelim.dta", clear

. /* Create quintiles manually */
. merge m:1 st_mx using "$data/mxdata1B.dta"

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                               480  (_merge==3)
    -----------------------------------------

. drop _merge

. centile rem, centile(20 40 60 80)

                                                          Binom. interp.   
    Variable |       Obs  Percentile    Centile        [95% conf. interval]
-------------+-------------------------------------------------------------
         rem |       480         20    191.2681        155.2728    240.5646
             |                   40     374.327        334.4992    403.6761
             |                   60    596.2227        528.6851    655.1339
             |                   80    1236.152        1083.974    1371.242

. gen qrem_mx = .
(480 missing values generated)

. replace qrem_mx = 1 if rem < 191.2681
(96 real changes made)

. replace qrem_mx = 2 if rem >= 191.2681 & rem < 374.327
(96 real changes made)

. replace qrem_mx = 3 if rem >= 374.327 & rem < 596.2227
(96 real changes made)

. replace qrem_mx = 4 if rem >= 596.2227 & rem < 1236.152
(96 real changes made)

. replace qrem_mx = 5 if rem >= 1236.152
(96 real changes made)

. /* Create quintiles automatically */
. xtile qrem_xt=rem, n(5)

. /* Compare manual and automatic quintiles */
. pwcorr qrem_mx qrem_xt

             |  qrem_mx  qrem_xt
-------------+------------------
     qrem_mx |   1.0000 
     qrem_xt |   1.0000   1.0000 

. groups qrem*

  +-------------------------------------+
  | qrem_mx   qrem_xt   Freq.   Percent |
  |-------------------------------------|
  |       1         1      96     20.00 |
  |       2         2      96     20.00 |
  |       3         3      96     20.00 |
  |       4         4      96     20.00 |
  |       5         5      96     20.00 |
  +-------------------------------------+

. /* Create maps in 2004, 2008, and 2012 */
. spmap qrem_mx using "$data/mxcoord1.dta" if yr==2004, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(vlarge)) title("2004", size(huge)) legend(label(2 "[0, 191.2681)")) legend(label(3 "[191.268
> 1–374.327)")) legend(label(4 "[374.327–596.2227)")) legend(label(5 "[596.2227–1236.152)")) legend(labe
> l(6 "[1236.152–)"))

. graph export "$data/rem_04.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/rem_04.png saved as PNG format

. spmap qrem_mx using "$data/mxcoord1.dta" if yr==2008, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(vlarge)) title("2008", size(huge)) legend(label(2 "[0, 191.2681)")) legend(label(3 "[191.268
> 1–374.327)")) legend(label(4 "[374.327–596.2227)")) legend(label(5 "[596.2227–1236.152)")) legend(labe
> l(6 "[1236.152–)"))

. graph export "$data/rem_08.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/rem_08.png saved as PNG format

. spmap qrem_mx using "$data/mxcoord1.dta" if yr==2012, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(vlarge)) title("2012", size(huge)) legend(label(2 "[0, 191.2681)")) legend(label(3 "[191.268
> 1–374.327)")) legend(label(4 "[374.327–596.2227)")) legend(label(5 "[596.2227–1236.152)")) legend(labe
> l(6 "[1236.152–)"))

. graph export "$data/rem_12.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/rem_12.png saved as PNG format

. 
. /*** Map of deportations by Mexican state ***/
. /* Create quintiles manually */
. centile dpt_tot_prop, centile(20 40 60 80)

                                                          Binom. interp.   
    Variable |       Obs  Percentile    Centile        [95% conf. interval]
-------------+-------------------------------------------------------------
dpt_tot_prop |       480         20    1971.209        1650.255    2375.887
             |                   40    3662.373        3170.829    4153.014
             |                   60    6545.293        5918.767    7059.412
             |                   80    10265.03        9290.748    11863.04

. gen qdpt_mx = .
(480 missing values generated)

. replace qdpt_mx = 1 if dpt_tot_prop < 1971.209
(96 real changes made)

. replace qdpt_mx = 2 if dpt_tot_prop >= 1971.209 & dpt_tot_prop < 3662.373
(96 real changes made)

. replace qdpt_mx = 3 if dpt_tot_prop >= 3662.373 & dpt_tot_prop < 6545.293
(96 real changes made)

. replace qdpt_mx = 4 if dpt_tot_prop >= 6545.293 & dpt_tot_prop < 10265.03
(96 real changes made)

. replace qdpt_mx = 5 if dpt_tot_prop >= 10265.03
(96 real changes made)

. /* Create quintiles automatically */
. xtile qdpt_xt=dpt_tot_prop, n(5)

. /* Compare manual and automatic quintiles */
. pwcorr qdpt_mx qdpt_xt

             |  qdpt_mx  qdpt_xt
-------------+------------------
     qdpt_mx |   1.0000 
     qdpt_xt |   1.0000   1.0000 

. groups qdpt*

  +-------------------------------------+
  | qdpt_mx   qdpt_xt   Freq.   Percent |
  |-------------------------------------|
  |       1         1      96     20.00 |
  |       2         2      96     20.00 |
  |       3         3      96     20.00 |
  |       4         4      96     20.00 |
  |       5         5      96     20.00 |
  +-------------------------------------+

. /* Map deportations in 2004, 2008, and 2012 */
. spmap qdpt_mx using "$data/mxcoord1.dta" if yr==2004, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(vlarge)) title("2004", size(huge)) legend(label(2 "[0, 1971.209)")) legend(label(3 "[1971.20
> 9–3662.373)")) legend(label(4 "[3662.373–6545.293)")) legend(label(5 "[6545.293–10265.03)")) legend(la
> bel(6 "[10265.03–)"))

. graph export "$data/dpt_04.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/dpt_04.png saved as PNG format

. spmap qdpt_mx using "$data/mxcoord1.dta" if yr==2008, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(vlarge)) title("2008", size(huge)) legend(label(2 "[0, 1971.209)")) legend(label(3 "[1971.20
> 9–3662.373)")) legend(label(4 "[3662.373–6545.293)")) legend(label(5 "[6545.293–10265.03)")) legend(la
> bel(6 "[10265.03–)"))

. graph export "$data/dpt_08.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/dpt_08.png saved as PNG format

. spmap qdpt_mx using "$data/mxcoord1.dta" if yr==2012, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(vlarge)) title("2012", size(huge)) legend(label(2 "[0, 1971.209)")) legend(label(3 "[1971.20
> 9–3662.373)")) legend(label(4 "[3662.373–6545.293)")) legend(label(5 "[6545.293–10265.03)")) legend(la
> bel(6 "[10265.03–)"))

. graph export "$data/dpt_12.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/dpt_12.png saved as PNG format

. 
. 
. 
. /***** Maps of the U.S. *****/
. /*** Preliminary steps ***/
. /* Convert the American shapefile into a workable form */
. shp2dta using "$data/tl_2019_us_state/tl_2019_us_state.shp", database($data/usdata.dta) coordinates($d
> ata/uscoord.dta) gencentroids(coord) genid(id) replace
type: 5

. /* Prepare the database file for merging */
. use "$data/usdata.dta", clear

. gen st_us=STUSPS

. save "$data/usdata.dta", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/usdata.dta saved

. 
. /*** Maps of deportations by American state ***/
. /* Import data */
. use "$data/deport_us_4812.dta", clear

. /* Merge with the geographical data. Drop states and territories outside the contiguous United States 
> */
. merge m:1 st_us using "$data/usdata.dta"

    Result                      Number of obs
    -----------------------------------------
    Not matched                             7
        from master                         0  (_merge==1)
        from using                          7  (_merge==2)

    Matched                               147  (_merge==3)
    -----------------------------------------

.         // tab st_us if _merge==2
. drop if _merge==2
(7 observations deleted)

. drop _merge

. /* Map deportations by quintile in 2004, 2008, and 2012 */
. spmap qdpt_tot using "$data/uscoord.dta" if yr==2004, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(large)) title("2004") legend(label(2 "[0, 3)")) legend(label(3 "[3–35)")) legend(label(4 "[3
> 5–207)")) legend(label(5 "[207–566)")) legend(label(6 "[566–)"))

. graph export "$data/dpt_us_04.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/dpt_us_04.png saved as PNG format

. spmap qdpt_tot using "$data/uscoord.dta" if yr==2008, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(large)) title("2008") legend(label(2 "[0, 3)")) legend(label(3 "[3–35)")) legend(label(4 "[3
> 5–207)")) legend(label(5 "[207–566)")) legend(label(6 "[566–)"))

. graph export "$data/dpt_us_08.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/dpt_us_08.png saved as PNG format

. spmap qdpt_tot using "$data/uscoord.dta" if yr==2012, id(id) clmethod(custom) clbreaks(0 1 2 3 4 5) le
> gend(size(large)) title("2012") legend(label(2 "[0, 3)")) legend(label(3 "[3–35)")) legend(label(4 "[3
> 5–207)")) legend(label(5 "[207–566)")) legend(label(6 "[566–)"))

. graph export "$data/dpt_us_12.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/dpt_us_12.png saved as PNG format

. 
. /*** Maps of Secure Communities ***/
. /* Import data then merge with geographical data. Drop states and territories outside the contiguous U
> nited States */
. use "$data/active_map", clear

. sort us_id yr

. merge m:1 st_us using "$data/usdata.dta"

    Result                      Number of obs
    -----------------------------------------
    Not matched                             7
        from master                         0  (_merge==1)
        from using                          7  (_merge==2)

    Matched                               735  (_merge==3)
    -----------------------------------------

.         // tab st_us if _merge==2
. drop if _merge==2
(7 observations deleted)

. drop _merge

. /* Map the cumulative proportion of states' activated counties in 2008, 2012, and 2014 */
. spmap active_prop using "$data/uscoord.dta" if yr==2008, id(id) clmethod(custom) clbreaks(0 0.2 0.4 0.
> 6 0.8 1) legend(size(large)) title("2008") legend(label(2 "0 - 20%")) legend(label(3 "21 - 40%")) lege
> nd(label(4 "41 - 60%")) legend(label(5 "61 - 80%")) legend(label(6 "81 - 100%"))

. graph export "$data/act_us_08.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/act_us_08.png saved as PNG format

. spmap active_prop using "$data/uscoord.dta" if yr==2010, id(id) clmethod(custom) clbreaks(0 0.2 0.4 0.
> 6 0.8 1) legend(size(large)) title("2010") legend(label(2 "0 - 20%")) legend(label(3 "21 - 40%")) lege
> nd(label(4 "41 - 60%")) legend(label(5 "61 - 80%")) legend(label(6 "81 - 100%"))

. graph export "$data/act_us_10.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/act_us_10.png saved as PNG format

. spmap active_prop using "$data/uscoord.dta" if yr==2012, id(id) clmethod(custom) clbreaks(0 0.2 0.4 0.
> 6 0.8 1) legend(size(large)) title("2012") legend(label(2 "0 - 20%")) legend(label(3 "21 - 40%")) lege
> nd(label(4 "41 - 60%")) legend(label(5 "61 - 80%")) legend(label(6 "81 - 100%"))

. graph export "$data/act_us_12.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/act_us_12.png saved as PNG format

. 
. 
. /*** Maps of exposure to Republican voters ***/
. /* Import data on presidantial vote shares */
. use "$data/elec_us.dta", clear

. /* Drop states and territories outside the contiguous United States */
. drop if us_id==1 | us_id==12 | us_id==13 | us_id==53 | us_id==54 | us_id==55
(10 observations deleted)

. /* Merge with geographical data */
. merge m:1 st_us using "$data/usdata.dta"

    Result                      Number of obs
    -----------------------------------------
    Not matched                             7
        from master                         0  (_merge==1)
        from using                          7  (_merge==2)

    Matched                               245  (_merge==3)
    -----------------------------------------

. /* Drop states and territories outside the contiguous United States */
.         // tab st_us if _merge==2
. drop if _merge==2
(7 observations deleted)

. drop _merge

. /* Map presidential vote shares in 2004, 2008, and 2012 */
. spmap rep_raw using "$data/uscoord.dta" if yr==2004, id(id) clmethod(custom) clbreaks(0 0.2 0.4 0.6 0.
> 8 1) legend(size(large)) title("2004") legend(label(2 "0 - 20%")) legend(label(3 "21 - 40%")) legend(l
> abel(4 "41 - 60%")) legend(label(5 "61 - 80%")) legend(label(6 "81 - 100%"))

. graph export "$data/vote_us_04.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/vote_us_04.png saved as PNG format

. spmap rep_raw using "$data/uscoord.dta" if yr==2008, id(id) clmethod(custom) clbreaks(0 0.2 0.4 0.6 0.
> 8 1) legend(size(large)) title("2008") legend(label(2 "0 - 20%")) legend(label(3 "21 - 40%")) legend(l
> abel(4 "41 - 60%")) legend(label(5 "61 - 80%")) legend(label(6 "81 - 100%"))

. graph export "$data/vote_us_08.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/vote_us_08.png saved as PNG format

. spmap rep_raw using "$data/uscoord.dta" if yr==2012, id(id) clmethod(custom) clbreaks(0 0.2 0.4 0.6 0.
> 8 1) legend(size(large)) title("2012") legend(label(2 "0 - 20%")) legend(label(3 "21 - 40%")) legend(l
> abel(4 "41 - 60%")) legend(label(5 "61 - 80%")) legend(label(6 "81 - 100%"))

. graph export "$data/vote_us_12.png", replace
file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/vote_us_12.png saved as PNG format

. 
. 
. 
. /***** Conduct regression analysis *****/
. /*** Ordinary least squares regression with robust standard errors as well as state and year fixed eff
> ects. Use the first state and year as the reference category ***/
. /* Import the data */
. use "$data/prelim.dta", clear

. /* Raw data */
. // Clear storage
. eststo clear

. // Without control variables
. eststo: xi: reg rem dpt_tot_prop ib(first).yr ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(46, 433)        =     227.26
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9580
                                                Root MSE          =     132.51

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0059668   .0029499     2.02   0.044     .0001688    .0117647
             |
          yr |
       2004  |   98.21151   33.75622     2.91   0.004     31.86509    164.5579
       2005  |   204.5722   33.12633     6.18   0.000     139.4638    269.6806
       2006  |   321.6196   39.10772     8.22   0.000      244.755    398.4841
       2007  |   326.4564   41.72339     7.82   0.000     244.4508    408.4619
       2008  |   283.5606   38.94927     7.28   0.000     207.0074    360.1137
       2009  |   157.3204   33.34867     4.72   0.000     91.77504    222.8658
       2010  |   155.3593   33.07773     4.70   0.000     90.34642    220.3722
       2011  |   193.6739   35.43948     5.46   0.000     124.0191    263.3287
       2012  |   183.1831   34.93782     5.24   0.000     114.5143    251.8519
       2013  |   191.1978   37.36724     5.12   0.000     117.7541    264.6416
       2014  |   244.9339   35.78544     6.84   0.000     174.5992    315.2687
       2015  |   286.3011   35.64794     8.03   0.000     216.2365    356.3656
       2016  |   355.1739   42.19596     8.42   0.000     272.2395    438.1083
       2017  |  -13.77816   51.92615    -0.27   0.791    -115.8368    88.28048
             |
       mx_id |
          2  |   150.3939   58.95935     2.55   0.011     34.51176     266.276
          3  |  -211.9182   54.04684    -3.92   0.000     -318.145   -105.6914
          4  |  -192.1405   51.50659    -3.73   0.000    -293.3745   -90.90644
          5  |   352.9232   48.78287     7.23   0.000     257.0426    448.8039
          6  |   195.7231   44.76631     4.37   0.000     107.7368    283.7094
          7  |   870.0564   65.83865    13.21   0.000     740.6534    999.4595
          8  |  -3.751051   36.36463    -0.10   0.918    -75.22419    67.72208
          9  |   -89.5503   41.83192    -2.14   0.033    -171.7692   -7.331425
         10  |    101.973   28.43834     3.59   0.000     46.07866    157.8674
         11  |   1325.757   75.03023    17.67   0.000     1178.289    1473.226
         12  |   1662.861   71.20081    23.35   0.000     1522.919    1802.803
         13  |   930.5275   40.98853    22.70   0.000     849.9663    1011.089
         14  |   478.1214   41.28388    11.58   0.000     396.9797    559.2631
         15  |    1534.85   60.17352    25.51   0.000     1416.582    1653.119
         16  |   1933.182   61.84125    31.26   0.000     1811.636    2054.728
         17  |   224.5632   26.76136     8.39   0.000     171.9649    277.1615
         18  |   27.16779   28.81822     0.94   0.346     -29.4732    83.80879
         19  |    114.325    49.0156     2.33   0.020     17.98689    210.6631
         20  |   941.5241   47.06866    20.00   0.000     849.0126    1034.036
         21  |    1044.86   55.04992    18.98   0.000     936.6618    1153.058
         22  |   70.64682    29.3634     2.41   0.017      12.9343    128.3593
         23  |  -165.7562   47.92524    -3.46   0.001    -259.9513    -71.5612
         24  |   348.0635   27.57062    12.62   0.000     293.8746    402.2524
         25  |   205.0853   37.25737     5.50   0.000     131.8575    278.3131
         26  |   17.66694   35.01811     0.50   0.614    -51.15968    86.49356
         27  |  -129.1383   46.15951    -2.80   0.005    -219.8629   -38.41374
         28  |    209.752   42.75292     4.91   0.000      125.723    293.7811
         29  |  -31.09481   42.60844    -0.73   0.466    -114.8399    52.65028
         30  |   951.1029   69.16684    13.75   0.000     815.1584    1087.047
         31  |  -139.1456    49.1567    -2.83   0.005     -235.761   -42.53019
         32  |    302.909   26.61512    11.38   0.000     250.5981    355.2199
             |
       _cons |   45.42404   48.22941     0.94   0.347    -49.36884    140.2169
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: reg rem dpt_tot_prop pop ann_pr_mx avg_tmp_mx ib(first).yr ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(49, 430)        =     219.50
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9593
                                                Root MSE          =     130.93

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0051107   .0029671     1.72   0.086    -.0007211    .0109425
         pop |  -61.03971   65.38255    -0.93   0.351    -189.5489    67.46944
   ann_pr_mx |   .0572696   .0359512     1.59   0.112    -.0133923    .1279316
  avg_tmp_mx |  -28.46022   12.85269    -2.21   0.027    -53.72213   -3.198298
             |
          yr |
       2004  |   106.5076   37.79118     2.82   0.005     32.22914     180.786
       2005  |   238.2935   37.35287     6.38   0.000     164.8766    311.7104
       2006  |   361.1137   42.86708     8.42   0.000     276.8586    445.3688
       2007  |   368.1884   45.54047     8.08   0.000     278.6788     457.698
       2008  |   325.0078   42.37136     7.67   0.000      241.727    408.2885
       2009  |    224.394   41.64089     5.39   0.000      142.549     306.239
       2010  |   196.2117   39.01838     5.03   0.000     119.5213    272.9022
       2011  |   264.2685   43.91713     6.02   0.000     177.9496    350.5875
       2012  |   251.8092    44.3138     5.68   0.000     164.7106    338.9078
       2013  |   246.8171   44.76971     5.51   0.000     158.8224    334.8117
       2014  |   302.6759   45.50945     6.65   0.000     213.2273    392.1246
       2015  |   357.0586   47.27577     7.55   0.000     264.1383     449.979
       2016  |   431.1962   52.19004     8.26   0.000     328.6168    533.7755
       2017  |   -203.312   146.1696    -1.39   0.165    -490.6079    83.98388
             |
       mx_id |
          2  |   274.0923   145.7326     1.88   0.061    -12.34465    560.5293
          3  |  -108.6058   85.79776    -1.27   0.206    -277.2409    60.02941
          4  |  -42.05665   114.1995    -0.37   0.713    -266.5153     182.402
          5  |   663.5001   266.9205     2.49   0.013     138.8689    1188.131
          6  |   291.8926   156.4083     1.87   0.063    -15.52722    599.3124
          7  |   1146.147   511.3235     2.24   0.026     141.1421    2151.151
          8  |   163.9803   117.2928     1.40   0.163    -66.55816    394.5188
          9  |   69.72837   112.9464     0.62   0.537    -152.2673     291.724
         10  |   113.3202   43.78064     2.59   0.010     27.26956    199.3709
         11  |   2076.133   931.5417     2.23   0.026     245.1914    3907.075
         12  |   1933.895   283.0529     6.83   0.000     1377.556    2490.235
         13  |   1201.628   176.7801     6.80   0.000     854.1673    1549.088
         14  |   501.8219   107.1582     4.68   0.000     291.2028    712.4411
         15  |   1959.599   404.2549     4.85   0.000     1165.038    2754.161
         16  |   2215.115   224.9781     9.85   0.000     1772.921    2657.308
         17  |   347.0424    76.6177     4.53   0.000     196.4506    497.6342
         18  |   91.01994   63.71599     1.43   0.154    -34.21359    216.2535
         19  |   417.8798   242.6832     1.72   0.086    -59.11312    894.8727
         20  |   1159.073   190.3427     6.09   0.000     784.9554    1533.191
         21  |   1319.963   315.0668     4.19   0.000     700.7002    1939.226
         22  |   43.52354   61.49839     0.71   0.480    -77.35131    164.3984
         23  |   23.87834   121.0653     0.20   0.844     -214.075    261.8317
         24  |   479.8005   100.5296     4.77   0.000     282.2099    677.3911
         25  |   455.4464   142.9951     3.19   0.002       174.39    736.5028
         26  |   209.6195   116.6759     1.80   0.073    -19.70656    438.9456
         27  |   78.41843    149.046     0.53   0.599    -214.5309    371.3678
         28  |   448.2698   160.5306     2.79   0.005     132.7476    763.7921
         29  |  -111.0731    54.8084    -2.03   0.043    -218.7988     -3.3474
         30  |   1433.294   442.9758     3.24   0.001     562.6263    2303.961
         31  |   107.0181   137.7684     0.78   0.438    -163.7653    377.8014
         32  |   300.9281   36.55423     8.23   0.000     229.0809    372.7753
             |
       _cons |   561.2931   248.8513     2.26   0.025     72.17694    1050.409
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 rem dpt_tot_prop, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. // Without control variables
. eststo: xi: reg rem_w1 dpt_tot_prop_w1 ib(first).yr ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(46, 433)        =     225.57
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9584
                                                Root MSE          =     131.53

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0061484   .0030134     2.04   0.042     .0002256    .0120711
                |
             yr |
          2004  |   98.19957   33.81107     2.90   0.004     31.74534    164.6538
          2005  |   204.3876   33.18614     6.16   0.000     139.1616    269.6136
          2006  |    321.318   39.11752     8.21   0.000     244.4341    398.2018
          2007  |    325.834   41.70803     7.81   0.000     243.8586    407.8094
          2008  |   282.5017   39.05478     7.23   0.000     205.7412    359.2622
          2009  |   156.0703   33.47839     4.66   0.000     90.26997    221.8707
          2010  |   154.0518   33.25015     4.63   0.000     88.70005    219.4036
          2011  |    193.079   35.43849     5.45   0.000     123.4262    262.7319
          2012  |   182.3285    35.0433     5.20   0.000     113.4524    251.2046
          2013  |   190.0311   37.47106     5.07   0.000     116.3833    263.6789
          2014  |    244.124   35.78872     6.82   0.000     173.7827    314.4652
          2015  |   285.3186   35.65982     8.00   0.000     215.2308    355.4065
          2016  |   347.5172   40.59919     8.56   0.000     267.7212    427.3132
          2017  |  -13.84577   51.72897    -0.27   0.789    -115.5169    87.82534
                |
          mx_id |
             2  |   152.3875   59.58418     2.56   0.011     35.27733    269.4977
             3  |  -209.0069    54.8239    -3.81   0.000    -316.7609   -101.2528
             4  |  -190.1078   52.00551    -3.66   0.000    -292.3224   -87.89315
             5  |   354.4973   48.99177     7.24   0.000     258.2061    450.7886
             6  |   197.5429    45.3925     4.35   0.000     108.3259      286.76
             7  |   872.0401   66.38403    13.14   0.000     741.5651    1002.515
             8  |  -2.619682   36.59283    -0.07   0.943    -74.54134    69.30197
             9  |  -88.01545   42.17298    -2.09   0.037    -170.9047   -5.126233
            10  |   101.9582   28.48696     3.58   0.000     45.96824    157.9481
            11  |   1326.872   75.05844    17.68   0.000     1179.348    1474.397
            12  |   1665.085   69.85449    23.84   0.000     1527.789    1802.381
            13  |   931.7366   41.26406    22.58   0.000     850.6339    1012.839
            14  |   479.2864    41.3701    11.59   0.000     397.9752    560.5975
            15  |   1535.599   60.43989    25.41   0.000     1416.807    1654.391
            16  |   1917.696   57.06506    33.61   0.000     1805.537    2029.855
            17  |   225.0805    26.6966     8.43   0.000     172.6095    277.5515
            18  |   27.52193   28.80259     0.96   0.340    -29.08835     84.1322
            19  |   115.4864    49.2985     2.34   0.020      18.5923    212.3805
            20  |   942.4636   47.21852    19.96   0.000     849.6576     1035.27
            21  |   1046.443    55.4709    18.86   0.000     937.4171    1155.469
            22  |   70.33919   29.40623     2.39   0.017      12.5425    128.1359
            23  |  -163.8977   48.37873    -3.39   0.001    -258.9841   -68.81137
            24  |   347.6608   27.68171    12.56   0.000     293.2536    402.0681
            25  |    206.567   37.68041     5.48   0.000     132.5078    280.6263
            26  |    18.8484   35.29966     0.53   0.594     -50.5316    88.22839
            27  |  -127.2858   46.59394    -2.73   0.007    -218.8642   -35.70734
            28  |   210.8229   42.96975     4.91   0.000     126.3677    295.2782
            29  |  -29.41966   42.93435    -0.69   0.494    -113.8053    54.96599
            30  |   952.1867   69.13817    13.77   0.000     816.2985    1088.075
            31  |  -137.1321   49.67801    -2.76   0.006    -234.7722    -39.4921
            32  |   302.8362   26.74565    11.32   0.000     250.2687    355.4036
                |
          _cons |   44.28888   48.61725     0.91   0.363    -51.26627     139.844
---------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: reg rem_w1 dpt_tot_prop_w1 pop ann_pr_mx avg_tmp_mx ib(first).yr ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(49, 430)        =     220.40
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9597
                                                Root MSE          =     129.93

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0051908   .0030242     1.72   0.087    -.0007532    .0111348
            pop |  -60.77307   65.42771    -0.93   0.353     -189.371    67.82485
      ann_pr_mx |   .0583159   .0357742     1.63   0.104    -.0119981    .1286299
     avg_tmp_mx |  -28.34499   12.85467    -2.21   0.028    -53.61078    -3.07919
                |
             yr |
          2004  |   106.8524   37.89359     2.82   0.005     32.37267    181.3321
          2005  |   238.5764   37.42087     6.38   0.000     165.0258     312.127
          2006  |   361.4235   42.92648     8.42   0.000     277.0517    445.7954
          2007  |   368.3493   45.58125     8.08   0.000     278.7595    457.9391
          2008  |   324.9344   42.55365     7.64   0.000     241.2954    408.5735
          2009  |   224.3235   41.89054     5.35   0.000     141.9878    306.6591
          2010  |   196.0006   39.25993     4.99   0.000     118.8354    273.1659
          2011  |   264.7995   44.09391     6.01   0.000     178.1331    351.4659
          2012  |   252.1207   44.55975     5.66   0.000     164.5386    339.7027
          2013  |   246.5703   44.95922     5.48   0.000     158.2031    334.9375
          2014  |   302.5751   45.58277     6.64   0.000     212.9823    392.1679
          2015  |   356.7201   47.34768     7.53   0.000     263.6585    449.7818
          2016  |   424.1474   51.13175     8.30   0.000     323.6481    524.6466
          2017  |  -201.2553   146.2144    -1.38   0.169    -488.6391    86.12851
                |
          mx_id |
             2  |   274.8207   145.8746     1.88   0.060    -11.89525    561.5367
             3  |  -106.8982   86.12204    -1.24   0.215    -276.1708     62.3743
             4  |  -42.63036   114.3327    -0.37   0.709    -267.3509    182.0902
             5  |   661.2146   267.0517     2.48   0.014     136.3255    1186.104
             6  |   292.3941   156.5263     1.87   0.062    -15.25773     600.046
             7  |   1145.092   511.5398     2.24   0.026     139.6628    2150.522
             8  |   163.9475    117.333     1.40   0.163     -66.6701    394.5652
             9  |    69.2769   112.9896     0.61   0.540    -152.8038    291.3576
            10  |   113.1801   43.73643     2.59   0.010     27.21632    199.1439
            11  |   2072.595   932.1312     2.22   0.027     240.4946    3904.695
            12  |   1935.041   283.3035     6.83   0.000     1378.209    2491.873
            13  |   1200.504   176.8754     6.79   0.000     852.8561    1548.152
            14  |   501.9941   107.1728     4.68   0.000     291.3465    712.6418
            15  |   1957.678   404.3251     4.84   0.000     1162.978    2752.377
            16  |   2197.938   223.9123     9.82   0.000     1757.839    2638.037
            17  |   346.2695   76.50779     4.53   0.000     195.8937    496.6453
            18  |   90.12117   63.63511     1.42   0.157    -34.95339    215.1957
            19  |     417.04   242.8148     1.72   0.087    -60.21165    894.2916
            20  |   1157.657   190.4433     6.08   0.000     783.3419    1531.973
            21  |   1318.676   315.2441     4.18   0.000     699.0646    1938.287
            22  |   43.13634   61.44206     0.70   0.483     -77.6278    163.9005
            23  |   22.93021   121.1263     0.19   0.850    -215.1431    261.0035
            24  |   478.9083   100.6683     4.76   0.000     281.0451    676.7715
            25  |   454.7905   143.0793     3.18   0.002     173.5686    736.0124
            26  |   209.5118   116.7267     1.79   0.073     -19.9141    438.9377
            27  |   76.62413   149.0842     0.51   0.608    -216.4002    369.6485
            28  |   447.4409     160.62     2.79   0.006      131.743    763.1389
            29  |  -110.5402   55.14799    -2.00   0.046    -218.9333   -2.146995
            30  |   1430.185   443.2276     3.23   0.001     559.0233    2301.347
            31  |   106.1158   137.8405     0.77   0.442    -164.8091    377.0408
            32  |   300.9169   36.56174     8.23   0.000      229.055    372.7789
                |
          _cons |   557.7225   249.1605     2.24   0.026     67.99842    1047.447
---------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately. Add \be
> gin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. Finally, m
> oves notes from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which should sit be
> tween \end{tabular} and \end{threeparttable}. Set notes in \footnotesize */
. esttab est1 est2 est3 est4 using "$data/ols.tex", replace b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.
> 05 *** 0.01) label nonumber mtitle("\textit{1}" "\textit{2}" "\textit{3}" "\textit{4}") mgroups("\text
> it{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0) prefix(\multicolumn{@span}{c}{)suffi
> x(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deportations on Mexican States' Annual \newli
> ne Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 dpt_tot_prop) stats(N F p r2, fmt(0 3 3 3) la
> bel(Observations \(F\) Prob\(>\)F \(R\)$^{2}$ )) nonote addnote("OLS regression. Robust standard error
> s in parentheses. All models contain state and year fixed effects.") collabels(none) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/ols.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/ols.tex)

. 
. /*** Instrumental variable regression with robust standard errors as well as state and year fixed effe
> cts. Use the first state and year as the reference category ***/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. tsset mx_id yr

Panel variable: mx_id (strongly balanced)
 Time variable: yr, 2003 to 2017
         Delta: 1 unit

. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw ib(first).yr ib(first).mx_id
> , robust first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   932.7882   186.6763     5.00   0.000      565.879    1299.697
  active_exp |  -2713.358   625.6173    -4.34   0.000    -3942.998   -1483.718
cons_exp_raw |  -1675.798   1980.943    -0.85   0.398    -5569.308    2217.713
             |
          yr |
       2004  |   453.8383   580.2747     0.78   0.435    -686.6819    1594.359
       2005  |   207.5883   586.0168     0.35   0.723    -944.2179    1359.395
       2006  |   904.4008   533.6717     1.69   0.091     -144.522    1953.324
       2007  |   2670.463   463.1673     5.77   0.000     1760.116    3580.811
       2008  |     4679.1   565.4618     8.27   0.000     3567.694    5790.506
       2009  |   6044.822   641.0978     9.43   0.000     4784.755    7304.889
       2010  |   7979.067   877.2665     9.10   0.000     6254.814    9703.319
       2011  |   10219.05    1220.36     8.37   0.000     7820.451    12617.65
       2012  |   10274.86   1270.399     8.09   0.000      7777.91    12771.81
       2013  |   8353.455   1191.452     7.01   0.000     6011.677    10695.23
       2014  |    6389.33   1179.748     5.42   0.000     4070.556    8708.104
       2015  |    5413.83   1184.845     4.57   0.000     3085.037    7742.623
       2016  |    5923.06   1209.056     4.90   0.000      3546.68     8299.44
       2017  |   2639.591   1359.171     1.94   0.053    -31.83773     5311.02
             |
       mx_id |
          2  |  -10470.94   942.0968   -11.11   0.000    -12322.61   -8619.262
          3  |  -13556.58   3254.315    -4.17   0.000    -19952.88   -7160.278
          4  |  -13549.44   3418.359    -3.96   0.000    -20268.17   -6830.718
          5  |  -9739.211   2545.269    -3.83   0.000     -14741.9   -4736.526
          6  |  -12149.69    3316.15    -3.66   0.000    -18667.53   -5631.857
          7  |   -11445.8   2065.662    -5.54   0.000    -15505.83   -7385.779
          8  |  -7127.905   2067.392    -3.45   0.001    -11191.33   -3064.481
          9  |  -8144.555   786.1286   -10.36   0.000    -9689.677   -6599.432
         10  |  -110.9606   1167.178    -0.10   0.924    -2405.029    2183.108
         11  |  -6232.944   912.7817    -6.83   0.000    -8027.001   -4438.886
         12  |   6824.366   2019.409     3.38   0.001      2855.25    10793.48
         13  |   -7331.87   2061.548    -3.56   0.000    -11383.81   -3279.931
         14  |  -6823.182    1468.12    -4.65   0.000    -9708.747   -3937.617
         15  |  -3903.248   660.7549    -5.91   0.000    -5201.951   -2604.545
         16  |  -1506.533   1436.654    -1.05   0.295    -4330.252    1317.185
         17  |  -2801.666   724.9068    -3.86   0.000    -4226.458   -1376.874
         18  |   -1931.85   1057.272    -1.83   0.068    -4009.899    146.2003
         19  |  -6671.313   800.3116    -8.34   0.000    -8244.312   -5098.314
         20  |   -5365.25    1483.31    -3.62   0.000     -8280.67   -2449.829
         21  |  -9014.414   1905.937    -4.73   0.000     -12760.5   -5268.327
         22  |   1614.586    1049.44     1.54   0.125    -448.0706    3677.243
         23  |  -12763.41   3622.104    -3.52   0.000    -19882.59   -5644.221
         24  |   1483.051   1821.392     0.81   0.416    -2096.865    5062.967
         25  |  -8005.737   860.2252    -9.31   0.000    -9696.496   -6314.979
         26  |  -6608.057   1288.861    -5.13   0.000    -9141.292   -4074.823
         27  |   -12265.7   3260.845    -3.76   0.000    -18674.84   -5856.567
         28  |  -6103.251   650.0265    -9.39   0.000    -7380.867   -4825.635
         29  |  -9691.193   1862.457    -5.20   0.000    -13351.82   -6030.565
         30  |   -6693.74   1823.416    -3.67   0.000    -10277.63   -3109.847
         31  |  -10746.27   1247.123    -8.62   0.000    -13197.47   -8295.076
         32  |   222.7788   1095.281     0.20   0.839    -1929.978    2375.536
             |
       _cons |   13119.39   5144.362     2.55   0.011     3008.234    23230.55
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      24.97    0.0000 |       27.81   0.0000 |       24.97

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.76    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.55
Kleibergen-Paap Wald rk F statistic                                24.97

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.21     P-val=0.0131
Anderson-Rubin Wald test           Chi-sq(1)=      6.92     P-val=0.0085
Stock-Wright LM S statistic        Chi-sq(1)=      7.86     P-val=0.0051

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   156.60
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9550
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9801
Residual SS             =  8156151.147                Root MSE      =    130.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0225439   .0088484     2.55   0.011     .0052014    .0398865
  active_exp |  -11.91891   8.296719    -1.44   0.151    -28.18017    4.342365
cons_exp_raw |  -224.9584   136.6194    -1.65   0.100    -492.7275    42.81075
             |
          yr |
       2004  |   119.4085   34.62332     3.45   0.001     51.54805     187.269
       2005  |   229.8513   34.30454     6.70   0.000     162.6156    297.0869
       2006  |   335.3475   41.56583     8.07   0.000       253.88    416.8151
       2007  |    310.908   47.61961     6.53   0.000     217.5753    404.2408
       2008  |   171.4135   57.77331     2.97   0.003     58.17987    284.6471
       2009  |   32.83516   62.60031     0.52   0.600     -89.8592    155.5295
       2010  |   52.86725   59.54522     0.89   0.375    -63.83923    169.5737
       2011  |   79.68546   70.42225     1.13   0.258    -58.33961    217.7105
       2012  |   85.82807   68.46431     1.25   0.210    -48.35951    220.0156
       2013  |   130.0358    57.4293     2.26   0.024     17.47646    242.5952
       2014  |   216.3316   49.74305     4.35   0.000      118.837    313.8261
       2015  |   273.8697   43.74784     6.26   0.000     188.1255    359.6139
       2016  |   306.6835   49.35034     6.21   0.000     209.9586    403.4084
       2017  |  -7.838006   58.35669    -0.13   0.893     -122.215     106.539
             |
       mx_id |
          2  |   269.0648   117.7774     2.28   0.022     38.22535    499.9043
          3  |  -370.4242   236.0113    -1.57   0.117    -832.9978    92.14935
          4  |  -381.9207   241.8377    -1.58   0.114     -855.914    92.07256
          5  |   216.7598   183.4746     1.18   0.237    -142.8438    576.3634
          6  |  -5.505924   232.0979    -0.02   0.981    -460.4095    449.3977
          7  |   831.7008   166.3474     5.00   0.000     505.6658    1157.736
          8  |  -125.9098   145.3388    -0.87   0.386    -410.7686     158.949
          9  |    90.6615   87.56127     1.04   0.300    -80.95543    262.2784
         10  |   3.379098   68.57719     0.05   0.961    -131.0297    137.7879
         11  |   1344.875   100.5449    13.38   0.000      1147.81    1541.939
         12  |   1660.124   113.0853    14.68   0.000     1438.481    1881.767
         13  |   815.3481   149.2347     5.46   0.000     522.8535    1107.843
         14  |   428.9553    112.013     3.83   0.000     209.4139    648.4968
         15  |    1614.22   69.75835    23.14   0.000     1477.496    1750.944
         16  |   2076.815   102.8923    20.18   0.000      1875.15     2278.48
         17  |   237.6968     43.901     5.41   0.000     151.6524    323.7412
         18  |   132.0329   59.28216     2.23   0.026     15.84197    248.2238
         19  |   158.5969   80.33492     1.97   0.048     1.143298    316.0504
         20  |   870.0093   112.3763     7.74   0.000     649.7557    1090.263
         21  |   983.9017    153.529     6.41   0.000     682.9904    1284.813
         22  |   29.56723   44.72944     0.66   0.509    -58.10086    117.2353
         23  |  -399.8923   253.6389    -1.58   0.115    -897.0153    97.23084
         24  |   482.5852   108.5419     4.45   0.000     269.8471    695.3233
         25  |    373.849   83.55366     4.47   0.000     210.0869    537.6112
         26  |   25.27343   88.80404     0.28   0.776    -148.7793    199.3262
         27  |  -324.3152   232.2406    -1.40   0.163    -779.4984     130.868
         28  |   275.8353   68.26739     4.04   0.000     142.0337     409.637
         29  |  -74.16568    143.293    -0.52   0.605    -355.0148    206.6834
         30  |    853.724   143.2715     5.96   0.000     572.9169    1134.531
         31  |  -74.67039    124.524    -0.60   0.549    -318.7329    169.3921
         32  |    215.361   60.06875     3.59   0.000     97.62838    333.0935
             |
       _cons |   473.7019   358.5499     1.32   0.186    -229.0429    1176.447
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.763
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.549
                         (Kleibergen-Paap rk Wald F statistic):         24.968
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(
> first).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |    944.018   186.3282     5.07   0.000     577.7859     1310.25
  active_exp |  -2771.099   631.1621    -4.39   0.000    -4011.662   -1530.536
cons_exp_raw |  -1346.578    1980.45    -0.68   0.497    -5239.197    2546.041
         pop |   997.1485   495.0857     2.01   0.045     24.04652     1970.25
   ann_pr_mx |   .7243704    .484101     1.50   0.135    -.2271408    1.675881
  avg_tmp_mx |  -474.5545   235.7083    -2.01   0.045    -937.8444   -11.26461
             |
          yr |
       2004  |     412.66    608.961     0.68   0.498    -784.2663    1609.586
       2005  |   478.0201   628.8029     0.76   0.448    -757.9059    1713.946
       2006  |   1129.431   609.9866     1.85   0.065    -69.51154    2328.373
       2007  |   2793.947   546.7354     5.11   0.000     1719.327    3868.568
       2008  |   4743.609   654.4758     7.25   0.000     3457.222    6029.996
       2009  |   6387.898   768.4572     8.31   0.000     4877.478    7898.318
       2010  |   7882.862   914.4176     8.62   0.000     6085.554     9680.17
       2011  |   10520.24   1241.283     8.48   0.000     8080.473    12960.01
       2012  |   10454.91   1299.923     8.04   0.000     7899.882    13009.94
       2013  |   8300.042   1201.536     6.91   0.000     5938.397    10661.69
       2014  |   6312.348   1187.489     5.32   0.000     3978.312    8646.385
       2015  |   5465.299   1200.431     4.55   0.000     3105.827    7824.772
       2016  |   6040.037    1216.25     4.97   0.000      3649.47    8430.604
       2017  |  -1851.822   3107.933    -0.60   0.552    -7960.533     4256.89
             |
       mx_id |
          2  |  -12179.56    1377.09    -8.84   0.000    -14886.26   -9472.863
          3  |  -10137.43   3501.713    -2.89   0.004    -17020.13   -3254.737
          4  |  -9522.089   3938.634    -2.42   0.016    -17263.56   -1780.616
          5  |  -10967.27   3575.271    -3.07   0.002    -17994.54   -3939.995
          6  |  -14440.64   3719.662    -3.88   0.000    -21751.72   -7129.563
          7  |  -21764.07   5073.079    -4.29   0.000    -31735.31   -11792.82
          8  |  -7104.502   2394.213    -2.97   0.003    -11810.38   -2398.625
          9  |  -4212.493   2063.232    -2.04   0.042    -8267.821   -157.1659
         10  |  -672.9727    1202.15    -0.56   0.576    -3035.825     1689.88
         11  |  -21413.53   7187.842    -2.98   0.003    -35541.39   -7285.667
         12  |    2585.68   2807.554     0.92   0.358    -2932.628    8103.989
         13  |  -6640.731    2783.45    -2.39   0.017    -12111.66   -1169.798
         14  |  -9015.494   1798.004    -5.01   0.000    -12549.51   -5481.478
         15  |  -9053.522   2995.954    -3.02   0.003    -14942.14   -3164.908
         16  |  -3151.574   2072.965    -1.52   0.129    -7226.032    922.8845
         17  |  -1733.674   1224.222    -1.42   0.157    -4139.909     672.562
         18  |   -542.592   1400.155    -0.39   0.699    -3294.628    2209.444
         19  |  -8523.603   2042.554    -4.17   0.000    -12538.29   -4508.917
         20  |  -6483.778   2214.176    -2.93   0.004    -10835.79   -2131.766
         21  |  -13154.38   3168.737    -4.15   0.000     -19382.6   -6926.156
         22  |  -112.4881   1194.574    -0.09   0.925     -2460.45    2235.474
         23  |  -9101.987     4171.5    -2.18   0.030    -17301.16   -902.8102
         24  |   640.3683   1881.614     0.34   0.734    -3057.985    4338.722
         25  |  -6875.918   1690.185    -4.07   0.000    -10198.02   -3553.821
         26  |  -6102.795   1712.131    -3.56   0.000    -9468.025   -2737.564
         27  |   -9893.05   3929.072    -2.52   0.012    -17615.73   -2170.372
         28  |  -6072.811   1561.188    -3.89   0.000    -9141.361   -3004.262
         29  |  -10500.13   1930.555    -5.44   0.000    -14294.68   -6705.582
         30  |  -10846.36   3996.692    -2.71   0.007    -18701.95   -2990.775
         31  |  -7753.845   2403.735    -3.23   0.001    -12478.44   -3029.251
         32  |  -297.7551   1105.645    -0.27   0.788    -2470.926    1875.415
             |
       _cons |   19280.09   6397.479     3.01   0.003     6705.703    31854.48
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      25.67    0.0000 |       28.79   0.0000 |       25.67

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.16    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      41.07
Kleibergen-Paap Wald rk F statistic                                25.67

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       6.20     P-val=0.0131
Anderson-Rubin Wald test           Chi-sq(1)=      6.96     P-val=0.0084
Stock-Wright LM S statistic        Chi-sq(1)=      8.49     P-val=0.0036

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   157.86
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9563
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9807
Residual SS             =  7916176.977                Root MSE      =    128.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0215531   .0084471     2.55   0.011     .0049971     .038109
  active_exp |  -9.483084   7.795804    -1.22   0.224    -24.76258    5.796412
cons_exp_raw |  -190.2735   135.8063    -1.40   0.161     -456.449    75.90202
         pop |  -75.82825   62.32008    -1.22   0.224    -197.9734    46.31685
   ann_pr_mx |   .0405232    .033353     1.21   0.224    -.0248474    .1058939
  avg_tmp_mx |  -19.40849     13.504    -1.44   0.151    -45.87584    7.058872
             |
          yr |
       2004  |   122.8847   37.83337     3.25   0.001     48.73266    197.0367
       2005  |   252.0758   37.69413     6.69   0.000     178.1967    325.9549
       2006  |   363.8431   44.51075     8.17   0.000     276.6037    451.0826
       2007  |   343.5842   49.76179     6.90   0.000     246.0529    441.1155
       2008  |   215.4817   59.35134     3.63   0.000     99.15516    331.8082
       2009  |   95.91827   67.20011     1.43   0.153    -35.79151    227.6281
       2010  |    94.3179   61.60474     1.53   0.126    -26.42518     215.061
       2011  |   141.1427   75.65193     1.87   0.062      -7.1324    289.4177
       2012  |   144.9533   73.67699     1.97   0.049     .5490877    289.3576
       2013  |   180.2593   62.14436     2.90   0.004     58.45863    302.0601
       2014  |   268.6706    57.1946     4.70   0.000     156.5713      380.77
       2015  |   336.2538   54.43996     6.18   0.000     229.5534    442.9542
       2016  |   379.6091    60.6132     6.26   0.000     260.8094    498.4088
       2017  |  -114.9845   160.7574    -0.72   0.474    -430.0632    200.0941
             |
       mx_id |
          2  |   426.3631   179.4058     2.38   0.017     74.73414     777.992
          3  |  -267.6154   234.1067    -1.14   0.253    -726.4561    191.2252
          4  |  -238.6941   251.0196    -0.95   0.342    -730.6835    253.2952
          5  |   589.1079    317.828     1.85   0.064     -33.8235    1212.039
          6  |   189.8482   285.8881     0.66   0.507    -370.4822    750.1786
          7  |   1312.035   538.1013     2.44   0.015     257.3761    2366.694
          8  |   74.48909    186.358     0.40   0.689    -290.7658     439.744
          9  |   170.0179    124.072     1.37   0.171     -73.1588    413.1946
         10  |   41.47288   76.92692     0.54   0.590    -109.3011    192.2469
         11  |   2341.826   902.4309     2.60   0.009     573.0944    4110.558
         12  |    1973.87   271.6291     7.27   0.000     1441.487    2506.253
         13  |   1105.509   227.2816     4.86   0.000     660.0453    1550.973
         14  |   516.2295   156.0572     3.31   0.001      210.363    822.0959
         15  |   2109.687   386.2907     5.46   0.000     1352.572    2866.803
         16  |   2355.273   223.2191    10.55   0.000     1917.772    2792.774
         17  |   344.3628   80.17913     4.29   0.000     187.2146     501.511
         18  |   158.2578   80.22678     1.97   0.049     1.016195    315.4994
         19  |   492.9817   243.9707     2.02   0.043      14.8079    971.1555
         20  |   1128.024   214.1953     5.27   0.000     708.2092    1547.839
         21  |   1356.563    346.635     3.91   0.000     677.1711    2035.955
         22  |    35.9804   68.14094     0.53   0.597    -97.57338    169.5342
         23  |  -206.7821   269.6775    -0.77   0.443    -735.3402     321.776
         24  |   593.6878   134.3336     4.42   0.000     330.3989    856.9767
         25  |   589.4162   148.6461     3.97   0.000     298.0752    880.7573
         26  |    218.491   140.0297     1.56   0.119    -55.96227    492.9442
         27  |  -97.59797   266.3339    -0.37   0.714    -619.6028    424.4068
         28  |   510.6548   161.1697     3.17   0.002      194.768    826.5417
         29  |  -103.0191   146.3387    -0.70   0.481    -389.8378    183.7995
         30  |   1426.524   448.4019     3.18   0.001     547.6727    2305.376
         31  |   133.2479   167.0611     0.80   0.425    -194.1858    460.6817
         32  |   236.8201   65.26146     3.63   0.000       108.91    364.7302
             |
       _cons |   767.0719   433.6463     1.77   0.077    -82.85929    1617.003
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.156
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               41.072
                         (Kleibergen-Paap rk Wald F statistic):         25.669
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 active_exp cons_exp_raw, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. gen sc_cons_raw_w1 = active_exp_w1*cons_exp_raw_w1

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 ib(first).yr 
> ib(first).mx_id, robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   887.1527   176.2034     5.03   0.000     540.8279    1233.478
  active_exp_w1 |  -2573.898   595.6586    -4.32   0.000    -3744.655   -1403.141
cons_exp_raw_w1 |  -1558.945   1950.592    -0.80   0.425      -5392.8     2274.91
                |
             yr |
          2004  |   440.5596   571.2436     0.77   0.441    -682.2101    1563.329
          2005  |   195.8562   577.1186     0.34   0.734    -938.4608    1330.173
          2006  |   891.1221   524.3368     1.70   0.090    -139.4531    1921.697
          2007  |   2657.185   455.1964     5.84   0.000     1762.504    3551.865
          2008  |   4693.706   558.9998     8.40   0.000     3595.002    5792.411
          2009  |   6041.242   637.2722     9.48   0.000     4788.694     7293.79
          2010  |   7880.972   862.1986     9.14   0.000     6186.335    9575.609
          2011  |   9916.314   1137.255     8.72   0.000     7681.057    12151.57
          2012  |   10004.74   1210.734     8.26   0.000      7625.06    12384.41
          2013  |   8187.085   1165.977     7.02   0.000     5895.376    10478.79
          2014  |    6222.96   1149.828     5.41   0.000     3962.992    8482.928
          2015  |    5247.46   1150.467     4.56   0.000     2986.236    7508.684
          2016  |   5738.617   1169.792     4.91   0.000     3439.411    8037.823
          2017  |   2459.517   1320.092     1.86   0.063    -135.1012    5054.135
                |
          mx_id |
             2  |  -10486.67   942.4716   -11.13   0.000    -12339.09   -8634.261
             3  |     -13405   3215.509    -4.17   0.000    -19725.03   -7084.966
             4  |  -13366.86   3375.425    -3.96   0.000     -20001.2   -6732.514
             5  |  -9637.218   2514.926    -3.83   0.000    -14580.26   -4694.172
             6  |  -11979.99   3274.852    -3.66   0.000    -18416.66   -5543.322
             7  |  -11381.65   2044.113    -5.57   0.000    -15399.32   -7363.982
             8  |  -7043.175   2045.082    -3.44   0.001    -11062.75     -3023.6
             9  |  -8168.635   788.8583   -10.36   0.000    -9719.123   -6618.147
            10  |  -83.79627   1165.739    -0.07   0.943    -2375.037    2207.444
            11  |  -6213.532   911.3299    -6.82   0.000    -8004.735   -4422.328
            12  |   6248.554   1894.368     3.30   0.001     2525.206    9971.902
            13  |  -7258.867   2039.225    -3.56   0.000    -11266.93   -3250.805
            14  |  -6775.103   1455.303    -4.66   0.000    -9635.476   -3914.729
            15  |      -3917   673.3212    -5.82   0.000    -5240.402   -2593.599
            16  |  -1519.052   1432.738    -1.06   0.290    -4335.076    1296.971
            17  |  -2798.121   735.4159    -3.80   0.000    -4243.568   -1352.673
            18  |  -1947.064   1058.939    -1.84   0.067    -4028.392    134.2638
            19  |  -6645.491    802.761    -8.28   0.000    -8223.305   -5067.678
            20  |  -5328.359   1471.864    -3.62   0.000    -8221.283   -2435.435
            21  |  -8964.147   1885.156    -4.76   0.000    -12669.39   -5258.904
            22  |   1621.074   1062.492     1.53   0.128    -467.2359    3709.384
            23  |   -12567.2   3564.664    -3.53   0.000    -19573.49   -5560.914
            24  |   1489.949   1809.918     0.82   0.411    -2067.415    5047.313
            25  |  -8020.586   858.7894    -9.34   0.000    -9708.523    -6332.65
            26  |  -6585.452   1278.337    -5.15   0.000    -9098.002   -4072.901
            27  |   -12099.8   3217.876    -3.76   0.000    -18424.48   -5775.116
            28  |  -6086.218   657.9017    -9.25   0.000    -7379.312   -4793.123
            29  |  -9633.654   1841.884    -5.23   0.000    -13253.85   -6013.462
            30  |  -6622.536   1804.448    -3.67   0.000    -10169.15   -3075.923
            31  |  -10743.45   1241.239    -8.66   0.000    -13183.09   -8303.819
            32  |   246.3765   1097.115     0.22   0.822    -1909.985    2402.738
                |
          _cons |   12851.12   5067.647     2.54   0.012     2890.741    22811.49
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      25.35    0.0000 |       28.23   0.0000 |       25.35

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.84    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      38.01
Kleibergen-Paap Wald rk F statistic                                25.35

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.04     P-val=0.0144
Anderson-Rubin Wald test           Chi-sq(1)=      6.73     P-val=0.0095
Stock-Wright LM S statistic        Chi-sq(1)=      7.70     P-val=0.0055

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   160.86
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9553
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9803
Residual SS             =  8063792.857                Root MSE      =    129.6

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0234206   .0092827     2.52   0.012     .0052268    .0416143
  active_exp_w1 |  -12.14032   8.289821    -1.46   0.143    -28.38807    4.107433
cons_exp_raw_w1 |  -202.5076   133.6345    -1.52   0.130    -464.4265    59.41131
                |
             yr |
          2004  |   116.6623   34.58346     3.37   0.001     48.87992    184.4446
          2005  |   227.0768    34.2115     6.64   0.000     160.0235    294.1302
          2006  |   331.9985   41.46352     8.01   0.000     250.7315    413.2655
          2007  |   306.0108    47.8531     6.39   0.000     212.2204    399.8011
          2008  |   170.1352   59.21888     2.87   0.004     54.06837    286.2021
          2009  |   30.72896   64.78599     0.47   0.635    -96.24926    157.7072
          2010  |   50.98999   61.38214     0.83   0.406     -69.3168    171.2968
          2011  |   80.48503   71.59176     1.12   0.261    -59.83224    220.8023
          2012  |   84.76992   69.99087     1.21   0.226    -52.40967    221.9495
          2013  |   128.2083    58.5876     2.19   0.029     13.37869    243.0379
          2014  |   216.2258   49.95952     4.33   0.000      118.307    314.1447
          2015  |   274.2695   43.59511     6.29   0.000     188.8247    359.7144
          2016  |   304.1561   49.35966     6.16   0.000     207.4129    400.8992
          2017  |  -.5697438   57.78139    -0.01   0.992    -113.8192    112.6797
                |
          mx_id |
             2  |   285.2412   121.9809     2.34   0.019     46.16304    524.3194
             3  |  -325.8155   234.5618    -1.39   0.165    -785.5481    133.9172
             4  |  -337.2788   239.6959    -1.41   0.159    -807.0742    132.5166
             5  |   250.5044   182.1199     1.38   0.169    -106.4441    607.4529
             6  |   37.45879   229.7628     0.16   0.870     -412.868    487.7856
             7  |   861.8722   167.2592     5.15   0.000     534.0502    1189.694
             8  |  -99.63742   144.0131    -0.69   0.489     -381.898    182.6231
             9  |   94.90618   90.79247     1.05   0.296    -83.04378    272.8561
            10  |   12.24033   67.94227     0.18   0.857    -120.9241    145.4047
            11  |    1357.92   101.4936    13.38   0.000     1158.996    1556.844
            12  |   1656.181    111.055    14.91   0.000     1438.518    1873.845
            13  |   842.2324   148.0972     5.69   0.000     551.9672    1132.498
            14  |   448.9505     112.01     4.01   0.000      229.415     668.486
            15  |   1617.144   71.15833    22.73   0.000     1477.676    1756.612
            16  |   2051.193   94.76226    21.65   0.000     1865.462    2236.924
            17  |   243.4402   44.64464     5.45   0.000     155.9383    330.9421
            18  |   127.4001   59.36614     2.15   0.032     11.04461    243.7556
            19  |   169.5783   82.13253     2.06   0.039     8.601539    330.5551
            20  |    889.344   111.8551     7.95   0.000      670.112    1108.576
            21  |   1010.957   153.6979     6.58   0.000     709.7143    1312.199
            22  |   29.20556   45.69946     0.64   0.523    -60.36373    118.7749
            23  |  -352.4198   250.4646    -1.41   0.159    -843.3214    138.4818
            24  |    464.261   106.8964     4.34   0.000      254.748    673.7741
            25  |   378.2954   86.84125     4.36   0.000     208.0897    548.5011
            26  |   40.39396   90.03337     0.45   0.654    -136.0682    216.8561
            27  |  -281.4458   229.9243    -1.22   0.221    -732.0892    169.1975
            28  |   283.5877   70.25725     4.04   0.000      145.886    421.2894
            29  |  -47.75612   143.7097    -0.33   0.740     -329.422    233.9098
            30  |    877.032   142.4534     6.16   0.000     597.8284    1156.236
            31  |  -53.31466   127.7502    -0.42   0.676    -303.7005    197.0712
            32  |   222.4043   59.74402     3.72   0.000     105.3082    339.5004
                |
          _cons |   408.6898   352.4374     1.16   0.246    -282.0749    1099.455
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.839
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               38.006
                         (Kleibergen-Paap rk Wald F statistic):         25.349
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx
>  avg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   897.8876   175.4092     5.12   0.000      553.117    1242.658
  active_exp_w1 |  -2630.396   599.2632    -4.39   0.000    -3808.261   -1452.531
cons_exp_raw_w1 |  -1249.622   1942.809    -0.64   0.520    -5068.257    2569.012
            pop |   934.1738   471.2511     1.98   0.048      7.91943    1860.428
      ann_pr_mx |   .7493387   .4781925     1.57   0.118    -.1905593    1.689237
     avg_tmp_mx |  -478.0456   232.8169    -2.05   0.041    -935.6524   -20.43891
                |
             yr |
          2004  |    409.738    599.175     0.68   0.494    -767.9536     1587.43
          2005  |   485.1454   621.6325     0.78   0.436    -736.6871    1706.978
          2006  |   1140.149   601.6516     1.90   0.059    -42.41056    2322.709
          2007  |   2807.854   540.6702     5.19   0.000     1745.155    3870.553
          2008  |   4782.481   646.9423     7.39   0.000     3510.901     6054.06
          2009  |   6417.325   763.1616     8.41   0.000     4917.314    7917.336
          2010  |   7814.157   905.3007     8.63   0.000     6034.769    9593.546
          2011  |   10254.67   1175.835     8.72   0.000     7943.545     12565.8
          2012  |   10225.03    1252.87     8.16   0.000     7762.484    12687.57
          2013  |   8172.214   1185.502     6.89   0.000     5842.084    10502.34
          2014  |   6187.427       1168     5.30   0.000     3891.697    8483.157
          2015  |   5345.723   1177.785     4.54   0.000     3030.762    7660.685
          2016  |   5901.291    1191.54     4.95   0.000     3559.293    8243.288
          2017  |  -2005.072    3063.71    -0.65   0.513    -8026.861    4016.718
                |
          mx_id |
             2  |  -12070.13   1347.929    -8.95   0.000    -14719.51   -9420.746
             3  |  -10027.69   3438.234    -2.92   0.004    -16785.62   -3269.766
             4  |  -9383.751   3856.816    -2.43   0.015    -16964.41   -1803.095
             5  |   -10675.2   3454.157    -3.09   0.002    -17464.43    -3885.98
             6  |  -14163.72   3642.622    -3.89   0.000    -21323.37   -7004.067
             7  |   -21266.4   4913.871    -4.33   0.000    -30924.73   -11608.08
             8  |  -6929.277    2334.72    -2.97   0.003    -11518.22   -2340.334
             9  |  -4250.078   2050.373    -2.07   0.039    -8280.132   -220.0242
            10  |  -629.4395   1195.707    -0.53   0.599    -2979.628    1720.749
            11  |  -20546.97   6858.089    -3.00   0.003    -34026.69   -7067.244
            12  |   2285.739   2694.609     0.85   0.397    -3010.576    7582.053
            13  |  -6441.561   2700.838    -2.39   0.018    -11750.12   -1133.004
            14  |  -8899.704   1767.508    -5.04   0.000    -12373.78   -5425.627
            15  |  -8679.274   2846.778    -3.05   0.002    -14274.68   -3083.869
            16  |  -2950.956   2016.096    -1.46   0.144    -6913.636    1011.725
            17  |  -1692.981   1214.428    -1.39   0.164    -4079.966    694.0049
            18  |  -561.3385   1401.703    -0.40   0.689    -3316.417     2193.74
            19  |  -8270.434   1950.744    -4.24   0.000    -12104.67   -4436.202
            20  |  -6302.878   2140.752    -2.94   0.003    -10510.57   -2095.182
            21  |  -12842.88   3053.467    -4.21   0.000    -18844.54   -6841.222
            22  |   -78.9459   1197.975    -0.07   0.947    -2433.593    2275.701
            23  |  -8921.397   4064.755    -2.19   0.029    -16910.76   -932.0314
            24  |   753.3447   1858.757     0.41   0.685    -2900.083    4406.772
            25  |  -6772.524   1660.523    -4.08   0.000    -10036.32    -3508.73
            26  |  -5982.448   1669.708    -3.58   0.000    -9264.295   -2700.601
            27  |  -9700.379    3831.37    -2.53   0.012    -17231.02   -2169.737
            28  |  -5919.047   1511.479    -3.92   0.000    -8889.893   -2948.202
            29  |  -10476.67   1910.728    -5.48   0.000    -14232.24   -6721.087
            30  |   -10400.7   3815.722    -2.73   0.007    -17900.58   -2900.814
            31  |  -7697.432   2356.867    -3.27   0.001    -12329.91   -3064.957
            32  |  -265.1422   1105.743    -0.24   0.811    -2438.505    1908.221
                |
          _cons |   19154.08   6353.025     3.01   0.003     6667.069    31641.09
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      26.20    0.0000 |       29.39   0.0000 |       26.20

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.32    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.53
Kleibergen-Paap Wald rk F statistic                                26.20

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       6.04     P-val=0.0144
Anderson-Rubin Wald test           Chi-sq(1)=      6.77     P-val=0.0092
Stock-Wright LM S statistic        Chi-sq(1)=      8.34     P-val=0.0039

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   162.07
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9566
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9809
Residual SS             =  7826574.232                Root MSE      =    127.7

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |    .022402   .0088721     2.53   0.012      .005013     .039791
  active_exp_w1 |   -9.80142   7.798257    -1.26   0.209    -25.08572    5.482884
cons_exp_raw_w1 |  -169.2028   132.4575    -1.28   0.201    -428.8147    90.40915
            pop |  -74.87545   62.45015    -1.20   0.231    -197.2755     47.5246
      ann_pr_mx |   .0415237   .0331295     1.25   0.210     -.023409    .1064564
     avg_tmp_mx |   -19.1113   13.66633    -1.40   0.162    -45.89681    7.674204
                |
             yr |
          2004  |   120.6614   37.89505     3.18   0.001     46.38841    194.9343
          2005  |   249.8385   37.79929     6.61   0.000     175.7532    323.9237
          2006  |    361.098    44.6345     8.09   0.000      273.616      448.58
          2007  |   339.3101   50.12054     6.77   0.000     241.0756    437.5445
          2008  |   214.4898   60.64421     3.54   0.000     95.62929    333.3502
          2009  |   94.12864   69.26106     1.36   0.174    -41.62055    229.8778
          2010  |   92.96919   63.11543     1.47   0.141    -30.73479    216.6732
          2011  |   142.3275   76.79176     1.85   0.064     -8.18159    292.8366
          2012  |   144.4301    75.1106     1.92   0.054    -2.783944    291.6442
          2013  |   178.9084   63.11258     2.83   0.005     55.21004    302.6068
          2014  |     268.94   57.30908     4.69   0.000     156.6163    381.2638
          2015  |   336.9571   54.24174     6.21   0.000     230.6453     443.269
          2016  |   377.0447   60.70457     6.21   0.000     258.0659    496.0234
          2017  |  -104.1309   162.5219    -0.64   0.522     -422.668    214.4062
                |
          mx_id |
             2  |   440.3745   182.7101     2.41   0.016     82.26926    798.4798
             3  |  -225.9979   230.1255    -0.98   0.326    -677.0356    225.0398
             4  |  -199.2989    247.109    -0.81   0.420    -683.6237    285.0258
             5  |   614.3905    318.165     1.93   0.053    -9.201403    1237.982
             6  |   228.6539    284.947     0.80   0.422     -329.832    787.1398
             7  |   1334.352   541.7927     2.46   0.014     272.4582    2396.246
             8  |   97.13219   185.2918     0.52   0.600    -266.0331    460.2975
             9  |   172.1418   125.5254     1.37   0.170    -73.88356    418.1672
            10  |   49.37069   76.48123     0.65   0.519    -100.5298    199.2712
            11  |   2341.034   905.2042     2.59   0.010     566.8664    4115.202
            12  |    1966.04    270.926     7.26   0.000     1435.034    2497.045
            13  |   1126.617   226.6975     4.97   0.000      682.298    1570.936
            14  |   534.0686   157.1514     3.40   0.001     226.0575    842.0796
            15  |   2105.667   387.1585     5.44   0.000     1346.851    2864.484
            16  |   2326.006    219.233    10.61   0.000     1896.317    2755.694
            17  |   347.7256   80.51255     4.32   0.000     189.9239    505.5273
            18  |    152.394   80.38487     1.90   0.058    -5.157465    309.9454
            19  |   499.0187    245.158     2.04   0.042     18.51781    979.5195
            20  |   1142.003   214.6522     5.32   0.000     721.2925    1562.714
            21  |   1376.757   348.3351     3.95   0.000     694.0327    2059.481
            22  |   35.23016     68.725     0.51   0.608    -99.46837    169.9287
            23  |  -165.5847   265.1874    -0.62   0.532    -685.3424    354.1731
            24  |   574.4935   132.5185     4.34   0.000      314.762    834.2251
            25  |   590.3733   150.0678     3.93   0.000     296.2458    884.5007
            26  |   230.5408   140.5888     1.64   0.101    -45.00828    506.0898
            27  |  -62.00577   263.8447    -0.24   0.814    -579.1319    455.1204
            28  |   514.5092   162.0982     3.17   0.002     196.8026    832.2158
            29  |  -77.95143   147.1727    -0.53   0.596    -366.4046    210.5017
            30  |   1439.483   449.7579     3.20   0.001     557.9739    2320.992
            31  |   149.7176   168.2062     0.89   0.373    -179.9604    479.3957
            32  |   243.3216   65.00267     3.74   0.000     115.9187    370.7245
                |
          _cons |    698.697   431.1828     1.62   0.105    -146.4058      1543.8
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.324
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.529
                         (Kleibergen-Paap rk Wald F statistic):         26.202
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Next, move final eight lines of first table to end of second t
> able. Delete \midrule between the the tables. Penultimately, consolidate notes by moving all of them f
> rom \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which should sit between \end{t
> abular} and \end{threeparttable}. Set notes in \scriptsize. Last, put separate terms in Kleibergen-Paa
> p F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}", no
> label) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0.5cm}
>  Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "\hsp
> ace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm}
>  Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2}" "\textit
> {3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0) pre
> fix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deportations
>  on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 dpt_tot_prop
>  active_exp_w1 active_exp cons_exp_raw_w1 cons_exp_raw) stats(N F Fp widstat, fmt(0 3 3 3) label(Obser
> vations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust standard error
> s in parentheses. All models contain state and year fixed effects.") collabels(none) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv.t
> ex", append refcat(sc_cons_raw "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 *
> * 0.05 *** 0.01) nomtitle varlabels(sc_cons_raw "\hspace{0.5cm} Policy $\times$ Partisanship" active_e
> xp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "\hspace{0.5cm} Population (
> mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} Temperature (ºC)" _con
> s "\hspace{0.5cm} Constant") nonumber rename(sc_cons_raw_w1 sc_cons_raw active_exp_w1 active_exp cons_
> exp_raw_w1 cons_exp_raw) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv.tex)

. 
. 
. /*** Identify  largest annual changes in deportations ***/
. sort mx_id yr

. by mx_id: gen dpt_ch = dpt_tot_prop - dpt_tot_prop[_n-1]
(32 missing values generated)

. sort dpt_ch

. 
. /*** Anderson-Rubin confidence intervals. Create table manually in LATEX. ***/
. /* Original data */
. // Without control variables
. sort mx_id yr

. xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw ib(first).yr ib(first).mx_id, robust
>  first

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   932.7882   186.6763     5.00   0.000      565.879    1299.697
  active_exp |  -2713.358   625.6173    -4.34   0.000    -3942.998   -1483.718
cons_exp_raw |  -1675.798   1980.943    -0.85   0.398    -5569.308    2217.713
             |
          yr |
       2004  |   453.8383   580.2747     0.78   0.435    -686.6819    1594.359
       2005  |   207.5883   586.0168     0.35   0.723    -944.2179    1359.395
       2006  |   904.4008   533.6717     1.69   0.091     -144.522    1953.324
       2007  |   2670.463   463.1673     5.77   0.000     1760.116    3580.811
       2008  |     4679.1   565.4618     8.27   0.000     3567.694    5790.506
       2009  |   6044.822   641.0978     9.43   0.000     4784.755    7304.889
       2010  |   7979.067   877.2665     9.10   0.000     6254.814    9703.319
       2011  |   10219.05    1220.36     8.37   0.000     7820.451    12617.65
       2012  |   10274.86   1270.399     8.09   0.000      7777.91    12771.81
       2013  |   8353.455   1191.452     7.01   0.000     6011.677    10695.23
       2014  |    6389.33   1179.748     5.42   0.000     4070.556    8708.104
       2015  |    5413.83   1184.845     4.57   0.000     3085.037    7742.623
       2016  |    5923.06   1209.056     4.90   0.000      3546.68     8299.44
       2017  |   2639.591   1359.171     1.94   0.053    -31.83773     5311.02
             |
       mx_id |
          2  |  -10470.94   942.0968   -11.11   0.000    -12322.61   -8619.262
          3  |  -13556.58   3254.315    -4.17   0.000    -19952.88   -7160.278
          4  |  -13549.44   3418.359    -3.96   0.000    -20268.17   -6830.718
          5  |  -9739.211   2545.269    -3.83   0.000     -14741.9   -4736.526
          6  |  -12149.69    3316.15    -3.66   0.000    -18667.53   -5631.857
          7  |   -11445.8   2065.662    -5.54   0.000    -15505.83   -7385.779
          8  |  -7127.905   2067.392    -3.45   0.001    -11191.33   -3064.481
          9  |  -8144.555   786.1286   -10.36   0.000    -9689.677   -6599.432
         10  |  -110.9606   1167.178    -0.10   0.924    -2405.029    2183.108
         11  |  -6232.944   912.7817    -6.83   0.000    -8027.001   -4438.886
         12  |   6824.366   2019.409     3.38   0.001      2855.25    10793.48
         13  |   -7331.87   2061.548    -3.56   0.000    -11383.81   -3279.931
         14  |  -6823.182    1468.12    -4.65   0.000    -9708.747   -3937.617
         15  |  -3903.248   660.7549    -5.91   0.000    -5201.951   -2604.545
         16  |  -1506.533   1436.654    -1.05   0.295    -4330.252    1317.185
         17  |  -2801.666   724.9068    -3.86   0.000    -4226.458   -1376.874
         18  |   -1931.85   1057.272    -1.83   0.068    -4009.899    146.2003
         19  |  -6671.313   800.3116    -8.34   0.000    -8244.312   -5098.314
         20  |   -5365.25    1483.31    -3.62   0.000     -8280.67   -2449.829
         21  |  -9014.414   1905.937    -4.73   0.000     -12760.5   -5268.327
         22  |   1614.586    1049.44     1.54   0.125    -448.0706    3677.243
         23  |  -12763.41   3622.104    -3.52   0.000    -19882.59   -5644.221
         24  |   1483.051   1821.392     0.81   0.416    -2096.865    5062.967
         25  |  -8005.737   860.2252    -9.31   0.000    -9696.496   -6314.979
         26  |  -6608.057   1288.861    -5.13   0.000    -9141.292   -4074.823
         27  |   -12265.7   3260.845    -3.76   0.000    -18674.84   -5856.567
         28  |  -6103.251   650.0265    -9.39   0.000    -7380.867   -4825.635
         29  |  -9691.193   1862.457    -5.20   0.000    -13351.82   -6030.565
         30  |   -6693.74   1823.416    -3.67   0.000    -10277.63   -3109.847
         31  |  -10746.27   1247.123    -8.62   0.000    -13197.47   -8295.076
         32  |   222.7788   1095.281     0.20   0.839    -1929.978    2375.536
             |
       _cons |   13119.39   5144.362     2.55   0.011     3008.234    23230.55
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      24.97    0.0000 |       27.81   0.0000 |       24.97

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.76    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.55
Kleibergen-Paap Wald rk F statistic                                24.97

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.21     P-val=0.0131
Anderson-Rubin Wald test           Chi-sq(1)=      6.92     P-val=0.0085
Stock-Wright LM S statistic        Chi-sq(1)=      7.86     P-val=0.0051

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   156.60
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9550
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9801
Residual SS             =  8156151.147                Root MSE      =    130.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0225439   .0088484     2.55   0.011     .0052014    .0398865
  active_exp |  -11.91891   8.296719    -1.44   0.151    -28.18017    4.342365
cons_exp_raw |  -224.9584   136.6194    -1.65   0.100    -492.7275    42.81075
             |
          yr |
       2004  |   119.4085   34.62332     3.45   0.001     51.54805     187.269
       2005  |   229.8513   34.30454     6.70   0.000     162.6156    297.0869
       2006  |   335.3475   41.56583     8.07   0.000       253.88    416.8151
       2007  |    310.908   47.61961     6.53   0.000     217.5753    404.2408
       2008  |   171.4135   57.77331     2.97   0.003     58.17987    284.6471
       2009  |   32.83516   62.60031     0.52   0.600     -89.8592    155.5295
       2010  |   52.86725   59.54522     0.89   0.375    -63.83923    169.5737
       2011  |   79.68546   70.42225     1.13   0.258    -58.33961    217.7105
       2012  |   85.82807   68.46431     1.25   0.210    -48.35951    220.0156
       2013  |   130.0358    57.4293     2.26   0.024     17.47646    242.5952
       2014  |   216.3316   49.74305     4.35   0.000      118.837    313.8261
       2015  |   273.8697   43.74784     6.26   0.000     188.1255    359.6139
       2016  |   306.6835   49.35034     6.21   0.000     209.9586    403.4084
       2017  |  -7.838006   58.35669    -0.13   0.893     -122.215     106.539
             |
       mx_id |
          2  |   269.0648   117.7774     2.28   0.022     38.22535    499.9043
          3  |  -370.4242   236.0113    -1.57   0.117    -832.9978    92.14935
          4  |  -381.9207   241.8377    -1.58   0.114     -855.914    92.07256
          5  |   216.7598   183.4746     1.18   0.237    -142.8438    576.3634
          6  |  -5.505924   232.0979    -0.02   0.981    -460.4095    449.3977
          7  |   831.7008   166.3474     5.00   0.000     505.6658    1157.736
          8  |  -125.9098   145.3388    -0.87   0.386    -410.7686     158.949
          9  |    90.6615   87.56127     1.04   0.300    -80.95543    262.2784
         10  |   3.379098   68.57719     0.05   0.961    -131.0297    137.7879
         11  |   1344.875   100.5449    13.38   0.000      1147.81    1541.939
         12  |   1660.124   113.0853    14.68   0.000     1438.481    1881.767
         13  |   815.3481   149.2347     5.46   0.000     522.8535    1107.843
         14  |   428.9553    112.013     3.83   0.000     209.4139    648.4968
         15  |    1614.22   69.75835    23.14   0.000     1477.496    1750.944
         16  |   2076.815   102.8923    20.18   0.000      1875.15     2278.48
         17  |   237.6968     43.901     5.41   0.000     151.6524    323.7412
         18  |   132.0329   59.28216     2.23   0.026     15.84197    248.2238
         19  |   158.5969   80.33492     1.97   0.048     1.143298    316.0504
         20  |   870.0093   112.3763     7.74   0.000     649.7557    1090.263
         21  |   983.9017    153.529     6.41   0.000     682.9904    1284.813
         22  |   29.56723   44.72944     0.66   0.509    -58.10086    117.2353
         23  |  -399.8923   253.6389    -1.58   0.115    -897.0153    97.23084
         24  |   482.5852   108.5419     4.45   0.000     269.8471    695.3233
         25  |    373.849   83.55366     4.47   0.000     210.0869    537.6112
         26  |   25.27343   88.80404     0.28   0.776    -148.7793    199.3262
         27  |  -324.3152   232.2406    -1.40   0.163    -779.4984     130.868
         28  |   275.8353   68.26739     4.04   0.000     142.0337     409.637
         29  |  -74.16568    143.293    -0.52   0.605    -355.0148    206.6834
         30  |    853.724   143.2715     5.96   0.000     572.9169    1134.531
         31  |  -74.67039    124.524    -0.60   0.549    -318.7329    169.3921
         32  |    215.361   60.06875     3.59   0.000     97.62838    333.0935
             |
       _cons |   473.7019   358.5499     1.32   0.186    -229.0429    1176.447
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.763
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.549
                         (Kleibergen-Paap rk Wald F statistic):         24.968
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------

. weakiv
Estimating confidence sets over 100 grid points
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100

Weak instrument robust tests and confidence sets for linear IV
H0: beta[rem:dpt_tot_prop] = 0
------------------------------------------------------------------------------
 Test |       Statistic         p-value |  Conf. level        Conf. Set       
------+---------------------------------+-------------------------------------
   AR | chi2(1)   =     6.62     0.0101 |      95%       [ .006077, .043916]  
------+---------------------------------+-------------------------------------
 Wald | chi2(1)   =     6.49     0.0108 |      95%       [ .005201, .039886]  
------------------------------------------------------------------------------
Confidence sets estimated for 100 points in [-.012141, .057229].
Number of obs N = 480.
Method = lagrange multiplier (LM).
Tests robust to heteroskedasticity.
Wald statistic in last row is based on ivreg2 estimation and is not robust to weak instruments.

. // With control variables
. xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(first).y
> r ib(first).mx_id, robust first

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |    944.018   186.3282     5.07   0.000     577.7859     1310.25
  active_exp |  -2771.099   631.1621    -4.39   0.000    -4011.662   -1530.536
cons_exp_raw |  -1346.578    1980.45    -0.68   0.497    -5239.197    2546.041
         pop |   997.1485   495.0857     2.01   0.045     24.04652     1970.25
   ann_pr_mx |   .7243704    .484101     1.50   0.135    -.2271408    1.675881
  avg_tmp_mx |  -474.5545   235.7083    -2.01   0.045    -937.8444   -11.26461
             |
          yr |
       2004  |     412.66    608.961     0.68   0.498    -784.2663    1609.586
       2005  |   478.0201   628.8029     0.76   0.448    -757.9059    1713.946
       2006  |   1129.431   609.9866     1.85   0.065    -69.51154    2328.373
       2007  |   2793.947   546.7354     5.11   0.000     1719.327    3868.568
       2008  |   4743.609   654.4758     7.25   0.000     3457.222    6029.996
       2009  |   6387.898   768.4572     8.31   0.000     4877.478    7898.318
       2010  |   7882.862   914.4176     8.62   0.000     6085.554     9680.17
       2011  |   10520.24   1241.283     8.48   0.000     8080.473    12960.01
       2012  |   10454.91   1299.923     8.04   0.000     7899.882    13009.94
       2013  |   8300.042   1201.536     6.91   0.000     5938.397    10661.69
       2014  |   6312.348   1187.489     5.32   0.000     3978.312    8646.385
       2015  |   5465.299   1200.431     4.55   0.000     3105.827    7824.772
       2016  |   6040.037    1216.25     4.97   0.000      3649.47    8430.604
       2017  |  -1851.822   3107.933    -0.60   0.552    -7960.533     4256.89
             |
       mx_id |
          2  |  -12179.56    1377.09    -8.84   0.000    -14886.26   -9472.863
          3  |  -10137.43   3501.713    -2.89   0.004    -17020.13   -3254.737
          4  |  -9522.089   3938.634    -2.42   0.016    -17263.56   -1780.616
          5  |  -10967.27   3575.271    -3.07   0.002    -17994.54   -3939.995
          6  |  -14440.64   3719.662    -3.88   0.000    -21751.72   -7129.563
          7  |  -21764.07   5073.079    -4.29   0.000    -31735.31   -11792.82
          8  |  -7104.502   2394.213    -2.97   0.003    -11810.38   -2398.625
          9  |  -4212.493   2063.232    -2.04   0.042    -8267.821   -157.1659
         10  |  -672.9727    1202.15    -0.56   0.576    -3035.825     1689.88
         11  |  -21413.53   7187.842    -2.98   0.003    -35541.39   -7285.667
         12  |    2585.68   2807.554     0.92   0.358    -2932.628    8103.989
         13  |  -6640.731    2783.45    -2.39   0.017    -12111.66   -1169.798
         14  |  -9015.494   1798.004    -5.01   0.000    -12549.51   -5481.478
         15  |  -9053.522   2995.954    -3.02   0.003    -14942.14   -3164.908
         16  |  -3151.574   2072.965    -1.52   0.129    -7226.032    922.8845
         17  |  -1733.674   1224.222    -1.42   0.157    -4139.909     672.562
         18  |   -542.592   1400.155    -0.39   0.699    -3294.628    2209.444
         19  |  -8523.603   2042.554    -4.17   0.000    -12538.29   -4508.917
         20  |  -6483.778   2214.176    -2.93   0.004    -10835.79   -2131.766
         21  |  -13154.38   3168.737    -4.15   0.000     -19382.6   -6926.156
         22  |  -112.4881   1194.574    -0.09   0.925     -2460.45    2235.474
         23  |  -9101.987     4171.5    -2.18   0.030    -17301.16   -902.8102
         24  |   640.3683   1881.614     0.34   0.734    -3057.985    4338.722
         25  |  -6875.918   1690.185    -4.07   0.000    -10198.02   -3553.821
         26  |  -6102.795   1712.131    -3.56   0.000    -9468.025   -2737.564
         27  |   -9893.05   3929.072    -2.52   0.012    -17615.73   -2170.372
         28  |  -6072.811   1561.188    -3.89   0.000    -9141.361   -3004.262
         29  |  -10500.13   1930.555    -5.44   0.000    -14294.68   -6705.582
         30  |  -10846.36   3996.692    -2.71   0.007    -18701.95   -2990.775
         31  |  -7753.845   2403.735    -3.23   0.001    -12478.44   -3029.251
         32  |  -297.7551   1105.645    -0.27   0.788    -2470.926    1875.415
             |
       _cons |   19280.09   6397.479     3.01   0.003     6705.703    31854.48
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      25.67    0.0000 |       28.79   0.0000 |       25.67

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.16    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      41.07
Kleibergen-Paap Wald rk F statistic                                25.67

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       6.20     P-val=0.0131
Anderson-Rubin Wald test           Chi-sq(1)=      6.96     P-val=0.0084
Stock-Wright LM S statistic        Chi-sq(1)=      8.49     P-val=0.0036

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   157.86
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9563
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9807
Residual SS             =  7916176.977                Root MSE      =    128.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0215531   .0084471     2.55   0.011     .0049971     .038109
  active_exp |  -9.483084   7.795804    -1.22   0.224    -24.76258    5.796412
cons_exp_raw |  -190.2735   135.8063    -1.40   0.161     -456.449    75.90202
         pop |  -75.82825   62.32008    -1.22   0.224    -197.9734    46.31685
   ann_pr_mx |   .0405232    .033353     1.21   0.224    -.0248474    .1058939
  avg_tmp_mx |  -19.40849     13.504    -1.44   0.151    -45.87584    7.058872
             |
          yr |
       2004  |   122.8847   37.83337     3.25   0.001     48.73266    197.0367
       2005  |   252.0758   37.69413     6.69   0.000     178.1967    325.9549
       2006  |   363.8431   44.51075     8.17   0.000     276.6037    451.0826
       2007  |   343.5842   49.76179     6.90   0.000     246.0529    441.1155
       2008  |   215.4817   59.35134     3.63   0.000     99.15516    331.8082
       2009  |   95.91827   67.20011     1.43   0.153    -35.79151    227.6281
       2010  |    94.3179   61.60474     1.53   0.126    -26.42518     215.061
       2011  |   141.1427   75.65193     1.87   0.062      -7.1324    289.4177
       2012  |   144.9533   73.67699     1.97   0.049     .5490877    289.3576
       2013  |   180.2593   62.14436     2.90   0.004     58.45863    302.0601
       2014  |   268.6706    57.1946     4.70   0.000     156.5713      380.77
       2015  |   336.2538   54.43996     6.18   0.000     229.5534    442.9542
       2016  |   379.6091    60.6132     6.26   0.000     260.8094    498.4088
       2017  |  -114.9845   160.7574    -0.72   0.474    -430.0632    200.0941
             |
       mx_id |
          2  |   426.3631   179.4058     2.38   0.017     74.73414     777.992
          3  |  -267.6154   234.1067    -1.14   0.253    -726.4561    191.2252
          4  |  -238.6941   251.0196    -0.95   0.342    -730.6835    253.2952
          5  |   589.1079    317.828     1.85   0.064     -33.8235    1212.039
          6  |   189.8482   285.8881     0.66   0.507    -370.4822    750.1786
          7  |   1312.035   538.1013     2.44   0.015     257.3761    2366.694
          8  |   74.48909    186.358     0.40   0.689    -290.7658     439.744
          9  |   170.0179    124.072     1.37   0.171     -73.1588    413.1946
         10  |   41.47288   76.92692     0.54   0.590    -109.3011    192.2469
         11  |   2341.826   902.4309     2.60   0.009     573.0944    4110.558
         12  |    1973.87   271.6291     7.27   0.000     1441.487    2506.253
         13  |   1105.509   227.2816     4.86   0.000     660.0453    1550.973
         14  |   516.2295   156.0572     3.31   0.001      210.363    822.0959
         15  |   2109.687   386.2907     5.46   0.000     1352.572    2866.803
         16  |   2355.273   223.2191    10.55   0.000     1917.772    2792.774
         17  |   344.3628   80.17913     4.29   0.000     187.2146     501.511
         18  |   158.2578   80.22678     1.97   0.049     1.016195    315.4994
         19  |   492.9817   243.9707     2.02   0.043      14.8079    971.1555
         20  |   1128.024   214.1953     5.27   0.000     708.2092    1547.839
         21  |   1356.563    346.635     3.91   0.000     677.1711    2035.955
         22  |    35.9804   68.14094     0.53   0.597    -97.57338    169.5342
         23  |  -206.7821   269.6775    -0.77   0.443    -735.3402     321.776
         24  |   593.6878   134.3336     4.42   0.000     330.3989    856.9767
         25  |   589.4162   148.6461     3.97   0.000     298.0752    880.7573
         26  |    218.491   140.0297     1.56   0.119    -55.96227    492.9442
         27  |  -97.59797   266.3339    -0.37   0.714    -619.6028    424.4068
         28  |   510.6548   161.1697     3.17   0.002      194.768    826.5417
         29  |  -103.0191   146.3387    -0.70   0.481    -389.8378    183.7995
         30  |   1426.524   448.4019     3.18   0.001     547.6727    2305.376
         31  |   133.2479   167.0611     0.80   0.425    -194.1858    460.6817
         32  |   236.8201   65.26146     3.63   0.000       108.91    364.7302
             |
       _cons |   767.0719   433.6463     1.77   0.077    -82.85929    1617.003
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.156
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               41.072
                         (Kleibergen-Paap rk Wald F statistic):         25.669
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------

. weakiv
Estimating confidence sets over 100 grid points
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100

Weak instrument robust tests and confidence sets for linear IV
H0: beta[rem:dpt_tot_prop] = 0
------------------------------------------------------------------------------
 Test |       Statistic         p-value |  Conf. level        Conf. Set       
------+---------------------------------+-------------------------------------
   AR | chi2(1)   =     6.65     0.0099 |      95%       [ .005833, .041955]  
------+---------------------------------+-------------------------------------
 Wald | chi2(1)   =     6.51     0.0107 |      95%       [ .004997, .038109]  
------------------------------------------------------------------------------
Confidence sets estimated for 100 points in [-.011559, .054665].
Number of obs N = 480.
Method = lagrange multiplier (LM).
Tests robust to heteroskedasticity.
Wald statistic in last row is based on ivreg2 estimation and is not robust to weak instruments.

. /* Winsorized data (0.5, 99.5) */
. // Without control variables
. xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 ib(first).yr ib(first
> ).mx_id, robust first

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   887.1527   176.2034     5.03   0.000     540.8279    1233.478
  active_exp_w1 |  -2573.898   595.6586    -4.32   0.000    -3744.655   -1403.141
cons_exp_raw_w1 |  -1558.945   1950.592    -0.80   0.425      -5392.8     2274.91
                |
             yr |
          2004  |   440.5596   571.2436     0.77   0.441    -682.2101    1563.329
          2005  |   195.8562   577.1186     0.34   0.734    -938.4608    1330.173
          2006  |   891.1221   524.3368     1.70   0.090    -139.4531    1921.697
          2007  |   2657.185   455.1964     5.84   0.000     1762.504    3551.865
          2008  |   4693.706   558.9998     8.40   0.000     3595.002    5792.411
          2009  |   6041.242   637.2722     9.48   0.000     4788.694     7293.79
          2010  |   7880.972   862.1986     9.14   0.000     6186.335    9575.609
          2011  |   9916.314   1137.255     8.72   0.000     7681.057    12151.57
          2012  |   10004.74   1210.734     8.26   0.000      7625.06    12384.41
          2013  |   8187.085   1165.977     7.02   0.000     5895.376    10478.79
          2014  |    6222.96   1149.828     5.41   0.000     3962.992    8482.928
          2015  |    5247.46   1150.467     4.56   0.000     2986.236    7508.684
          2016  |   5738.617   1169.792     4.91   0.000     3439.411    8037.823
          2017  |   2459.517   1320.092     1.86   0.063    -135.1012    5054.135
                |
          mx_id |
             2  |  -10486.67   942.4716   -11.13   0.000    -12339.09   -8634.261
             3  |     -13405   3215.509    -4.17   0.000    -19725.03   -7084.966
             4  |  -13366.86   3375.425    -3.96   0.000     -20001.2   -6732.514
             5  |  -9637.218   2514.926    -3.83   0.000    -14580.26   -4694.172
             6  |  -11979.99   3274.852    -3.66   0.000    -18416.66   -5543.322
             7  |  -11381.65   2044.113    -5.57   0.000    -15399.32   -7363.982
             8  |  -7043.175   2045.082    -3.44   0.001    -11062.75     -3023.6
             9  |  -8168.635   788.8583   -10.36   0.000    -9719.123   -6618.147
            10  |  -83.79627   1165.739    -0.07   0.943    -2375.037    2207.444
            11  |  -6213.532   911.3299    -6.82   0.000    -8004.735   -4422.328
            12  |   6248.554   1894.368     3.30   0.001     2525.206    9971.902
            13  |  -7258.867   2039.225    -3.56   0.000    -11266.93   -3250.805
            14  |  -6775.103   1455.303    -4.66   0.000    -9635.476   -3914.729
            15  |      -3917   673.3212    -5.82   0.000    -5240.402   -2593.599
            16  |  -1519.052   1432.738    -1.06   0.290    -4335.076    1296.971
            17  |  -2798.121   735.4159    -3.80   0.000    -4243.568   -1352.673
            18  |  -1947.064   1058.939    -1.84   0.067    -4028.392    134.2638
            19  |  -6645.491    802.761    -8.28   0.000    -8223.305   -5067.678
            20  |  -5328.359   1471.864    -3.62   0.000    -8221.283   -2435.435
            21  |  -8964.147   1885.156    -4.76   0.000    -12669.39   -5258.904
            22  |   1621.074   1062.492     1.53   0.128    -467.2359    3709.384
            23  |   -12567.2   3564.664    -3.53   0.000    -19573.49   -5560.914
            24  |   1489.949   1809.918     0.82   0.411    -2067.415    5047.313
            25  |  -8020.586   858.7894    -9.34   0.000    -9708.523    -6332.65
            26  |  -6585.452   1278.337    -5.15   0.000    -9098.002   -4072.901
            27  |   -12099.8   3217.876    -3.76   0.000    -18424.48   -5775.116
            28  |  -6086.218   657.9017    -9.25   0.000    -7379.312   -4793.123
            29  |  -9633.654   1841.884    -5.23   0.000    -13253.85   -6013.462
            30  |  -6622.536   1804.448    -3.67   0.000    -10169.15   -3075.923
            31  |  -10743.45   1241.239    -8.66   0.000    -13183.09   -8303.819
            32  |   246.3765   1097.115     0.22   0.822    -1909.985    2402.738
                |
          _cons |   12851.12   5067.647     2.54   0.012     2890.741    22811.49
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      25.35    0.0000 |       28.23   0.0000 |       25.35

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.84    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      38.01
Kleibergen-Paap Wald rk F statistic                                25.35

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.04     P-val=0.0144
Anderson-Rubin Wald test           Chi-sq(1)=      6.73     P-val=0.0095
Stock-Wright LM S statistic        Chi-sq(1)=      7.70     P-val=0.0055

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   160.86
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9553
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9803
Residual SS             =  8063792.857                Root MSE      =    129.6

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0234206   .0092827     2.52   0.012     .0052268    .0416143
  active_exp_w1 |  -12.14032   8.289821    -1.46   0.143    -28.38807    4.107433
cons_exp_raw_w1 |  -202.5076   133.6345    -1.52   0.130    -464.4265    59.41131
                |
             yr |
          2004  |   116.6623   34.58346     3.37   0.001     48.87992    184.4446
          2005  |   227.0768    34.2115     6.64   0.000     160.0235    294.1302
          2006  |   331.9985   41.46352     8.01   0.000     250.7315    413.2655
          2007  |   306.0108    47.8531     6.39   0.000     212.2204    399.8011
          2008  |   170.1352   59.21888     2.87   0.004     54.06837    286.2021
          2009  |   30.72896   64.78599     0.47   0.635    -96.24926    157.7072
          2010  |   50.98999   61.38214     0.83   0.406     -69.3168    171.2968
          2011  |   80.48503   71.59176     1.12   0.261    -59.83224    220.8023
          2012  |   84.76992   69.99087     1.21   0.226    -52.40967    221.9495
          2013  |   128.2083    58.5876     2.19   0.029     13.37869    243.0379
          2014  |   216.2258   49.95952     4.33   0.000      118.307    314.1447
          2015  |   274.2695   43.59511     6.29   0.000     188.8247    359.7144
          2016  |   304.1561   49.35966     6.16   0.000     207.4129    400.8992
          2017  |  -.5697438   57.78139    -0.01   0.992    -113.8192    112.6797
                |
          mx_id |
             2  |   285.2412   121.9809     2.34   0.019     46.16304    524.3194
             3  |  -325.8155   234.5618    -1.39   0.165    -785.5481    133.9172
             4  |  -337.2788   239.6959    -1.41   0.159    -807.0742    132.5166
             5  |   250.5044   182.1199     1.38   0.169    -106.4441    607.4529
             6  |   37.45879   229.7628     0.16   0.870     -412.868    487.7856
             7  |   861.8722   167.2592     5.15   0.000     534.0502    1189.694
             8  |  -99.63742   144.0131    -0.69   0.489     -381.898    182.6231
             9  |   94.90618   90.79247     1.05   0.296    -83.04378    272.8561
            10  |   12.24033   67.94227     0.18   0.857    -120.9241    145.4047
            11  |    1357.92   101.4936    13.38   0.000     1158.996    1556.844
            12  |   1656.181    111.055    14.91   0.000     1438.518    1873.845
            13  |   842.2324   148.0972     5.69   0.000     551.9672    1132.498
            14  |   448.9505     112.01     4.01   0.000      229.415     668.486
            15  |   1617.144   71.15833    22.73   0.000     1477.676    1756.612
            16  |   2051.193   94.76226    21.65   0.000     1865.462    2236.924
            17  |   243.4402   44.64464     5.45   0.000     155.9383    330.9421
            18  |   127.4001   59.36614     2.15   0.032     11.04461    243.7556
            19  |   169.5783   82.13253     2.06   0.039     8.601539    330.5551
            20  |    889.344   111.8551     7.95   0.000      670.112    1108.576
            21  |   1010.957   153.6979     6.58   0.000     709.7143    1312.199
            22  |   29.20556   45.69946     0.64   0.523    -60.36373    118.7749
            23  |  -352.4198   250.4646    -1.41   0.159    -843.3214    138.4818
            24  |    464.261   106.8964     4.34   0.000      254.748    673.7741
            25  |   378.2954   86.84125     4.36   0.000     208.0897    548.5011
            26  |   40.39396   90.03337     0.45   0.654    -136.0682    216.8561
            27  |  -281.4458   229.9243    -1.22   0.221    -732.0892    169.1975
            28  |   283.5877   70.25725     4.04   0.000      145.886    421.2894
            29  |  -47.75612   143.7097    -0.33   0.740     -329.422    233.9098
            30  |    877.032   142.4534     6.16   0.000     597.8284    1156.236
            31  |  -53.31466   127.7502    -0.42   0.676    -303.7005    197.0712
            32  |   222.4043   59.74402     3.72   0.000     105.3082    339.5004
                |
          _cons |   408.6898   352.4374     1.16   0.246    -282.0749    1099.455
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.839
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               38.006
                         (Kleibergen-Paap rk Wald F statistic):         25.349
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------

. weakiv
Estimating confidence sets over 100 grid points
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100

Weak instrument robust tests and confidence sets for linear IV
H0: beta[rem_w1:dpt_tot_prop_w1] = 0
------------------------------------------------------------------------------
 Test |       Statistic         p-value |  Conf. level        Conf. Set       
------+---------------------------------+-------------------------------------
   AR | chi2(1)   =     6.44     0.0112 |      95%       [ .006146, .045841]  
------+---------------------------------+-------------------------------------
 Wald | chi2(1)   =     6.37     0.0116 |      95%       [ .005227, .041614]  
------------------------------------------------------------------------------
Confidence sets estimated for 100 points in [-.012967, .059808].
Number of obs N = 480.
Method = lagrange multiplier (LM).
Tests robust to heteroskedasticity.
Wald statistic in last row is based on ivreg2 estimation and is not robust to weak instruments.

. // With control variables
. xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp
> _mx ib(first).yr ib(first).mx_id, robust first

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   897.8876   175.4092     5.12   0.000      553.117    1242.658
  active_exp_w1 |  -2630.396   599.2632    -4.39   0.000    -3808.261   -1452.531
cons_exp_raw_w1 |  -1249.622   1942.809    -0.64   0.520    -5068.257    2569.012
            pop |   934.1738   471.2511     1.98   0.048      7.91943    1860.428
      ann_pr_mx |   .7493387   .4781925     1.57   0.118    -.1905593    1.689237
     avg_tmp_mx |  -478.0456   232.8169    -2.05   0.041    -935.6524   -20.43891
                |
             yr |
          2004  |    409.738    599.175     0.68   0.494    -767.9536     1587.43
          2005  |   485.1454   621.6325     0.78   0.436    -736.6871    1706.978
          2006  |   1140.149   601.6516     1.90   0.059    -42.41056    2322.709
          2007  |   2807.854   540.6702     5.19   0.000     1745.155    3870.553
          2008  |   4782.481   646.9423     7.39   0.000     3510.901     6054.06
          2009  |   6417.325   763.1616     8.41   0.000     4917.314    7917.336
          2010  |   7814.157   905.3007     8.63   0.000     6034.769    9593.546
          2011  |   10254.67   1175.835     8.72   0.000     7943.545     12565.8
          2012  |   10225.03    1252.87     8.16   0.000     7762.484    12687.57
          2013  |   8172.214   1185.502     6.89   0.000     5842.084    10502.34
          2014  |   6187.427       1168     5.30   0.000     3891.697    8483.157
          2015  |   5345.723   1177.785     4.54   0.000     3030.762    7660.685
          2016  |   5901.291    1191.54     4.95   0.000     3559.293    8243.288
          2017  |  -2005.072    3063.71    -0.65   0.513    -8026.861    4016.718
                |
          mx_id |
             2  |  -12070.13   1347.929    -8.95   0.000    -14719.51   -9420.746
             3  |  -10027.69   3438.234    -2.92   0.004    -16785.62   -3269.766
             4  |  -9383.751   3856.816    -2.43   0.015    -16964.41   -1803.095
             5  |   -10675.2   3454.157    -3.09   0.002    -17464.43    -3885.98
             6  |  -14163.72   3642.622    -3.89   0.000    -21323.37   -7004.067
             7  |   -21266.4   4913.871    -4.33   0.000    -30924.73   -11608.08
             8  |  -6929.277    2334.72    -2.97   0.003    -11518.22   -2340.334
             9  |  -4250.078   2050.373    -2.07   0.039    -8280.132   -220.0242
            10  |  -629.4395   1195.707    -0.53   0.599    -2979.628    1720.749
            11  |  -20546.97   6858.089    -3.00   0.003    -34026.69   -7067.244
            12  |   2285.739   2694.609     0.85   0.397    -3010.576    7582.053
            13  |  -6441.561   2700.838    -2.39   0.018    -11750.12   -1133.004
            14  |  -8899.704   1767.508    -5.04   0.000    -12373.78   -5425.627
            15  |  -8679.274   2846.778    -3.05   0.002    -14274.68   -3083.869
            16  |  -2950.956   2016.096    -1.46   0.144    -6913.636    1011.725
            17  |  -1692.981   1214.428    -1.39   0.164    -4079.966    694.0049
            18  |  -561.3385   1401.703    -0.40   0.689    -3316.417     2193.74
            19  |  -8270.434   1950.744    -4.24   0.000    -12104.67   -4436.202
            20  |  -6302.878   2140.752    -2.94   0.003    -10510.57   -2095.182
            21  |  -12842.88   3053.467    -4.21   0.000    -18844.54   -6841.222
            22  |   -78.9459   1197.975    -0.07   0.947    -2433.593    2275.701
            23  |  -8921.397   4064.755    -2.19   0.029    -16910.76   -932.0314
            24  |   753.3447   1858.757     0.41   0.685    -2900.083    4406.772
            25  |  -6772.524   1660.523    -4.08   0.000    -10036.32    -3508.73
            26  |  -5982.448   1669.708    -3.58   0.000    -9264.295   -2700.601
            27  |  -9700.379    3831.37    -2.53   0.012    -17231.02   -2169.737
            28  |  -5919.047   1511.479    -3.92   0.000    -8889.893   -2948.202
            29  |  -10476.67   1910.728    -5.48   0.000    -14232.24   -6721.087
            30  |   -10400.7   3815.722    -2.73   0.007    -17900.58   -2900.814
            31  |  -7697.432   2356.867    -3.27   0.001    -12329.91   -3064.957
            32  |  -265.1422   1105.743    -0.24   0.811    -2438.505    1908.221
                |
          _cons |   19154.08   6353.025     3.01   0.003     6667.069    31641.09
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      26.20    0.0000 |       29.39   0.0000 |       26.20

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.32    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.53
Kleibergen-Paap Wald rk F statistic                                26.20

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       6.04     P-val=0.0144
Anderson-Rubin Wald test           Chi-sq(1)=      6.77     P-val=0.0092
Stock-Wright LM S statistic        Chi-sq(1)=      8.34     P-val=0.0039

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   162.07
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9566
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9809
Residual SS             =  7826574.232                Root MSE      =    127.7

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |    .022402   .0088721     2.53   0.012      .005013     .039791
  active_exp_w1 |   -9.80142   7.798257    -1.26   0.209    -25.08572    5.482884
cons_exp_raw_w1 |  -169.2028   132.4575    -1.28   0.201    -428.8147    90.40915
            pop |  -74.87545   62.45015    -1.20   0.231    -197.2755     47.5246
      ann_pr_mx |   .0415237   .0331295     1.25   0.210     -.023409    .1064564
     avg_tmp_mx |   -19.1113   13.66633    -1.40   0.162    -45.89681    7.674204
                |
             yr |
          2004  |   120.6614   37.89505     3.18   0.001     46.38841    194.9343
          2005  |   249.8385   37.79929     6.61   0.000     175.7532    323.9237
          2006  |    361.098    44.6345     8.09   0.000      273.616      448.58
          2007  |   339.3101   50.12054     6.77   0.000     241.0756    437.5445
          2008  |   214.4898   60.64421     3.54   0.000     95.62929    333.3502
          2009  |   94.12864   69.26106     1.36   0.174    -41.62055    229.8778
          2010  |   92.96919   63.11543     1.47   0.141    -30.73479    216.6732
          2011  |   142.3275   76.79176     1.85   0.064     -8.18159    292.8366
          2012  |   144.4301    75.1106     1.92   0.054    -2.783944    291.6442
          2013  |   178.9084   63.11258     2.83   0.005     55.21004    302.6068
          2014  |     268.94   57.30908     4.69   0.000     156.6163    381.2638
          2015  |   336.9571   54.24174     6.21   0.000     230.6453     443.269
          2016  |   377.0447   60.70457     6.21   0.000     258.0659    496.0234
          2017  |  -104.1309   162.5219    -0.64   0.522     -422.668    214.4062
                |
          mx_id |
             2  |   440.3745   182.7101     2.41   0.016     82.26926    798.4798
             3  |  -225.9979   230.1255    -0.98   0.326    -677.0356    225.0398
             4  |  -199.2989    247.109    -0.81   0.420    -683.6237    285.0258
             5  |   614.3905    318.165     1.93   0.053    -9.201403    1237.982
             6  |   228.6539    284.947     0.80   0.422     -329.832    787.1398
             7  |   1334.352   541.7927     2.46   0.014     272.4582    2396.246
             8  |   97.13219   185.2918     0.52   0.600    -266.0331    460.2975
             9  |   172.1418   125.5254     1.37   0.170    -73.88356    418.1672
            10  |   49.37069   76.48123     0.65   0.519    -100.5298    199.2712
            11  |   2341.034   905.2042     2.59   0.010     566.8664    4115.202
            12  |    1966.04    270.926     7.26   0.000     1435.034    2497.045
            13  |   1126.617   226.6975     4.97   0.000      682.298    1570.936
            14  |   534.0686   157.1514     3.40   0.001     226.0575    842.0796
            15  |   2105.667   387.1585     5.44   0.000     1346.851    2864.484
            16  |   2326.006    219.233    10.61   0.000     1896.317    2755.694
            17  |   347.7256   80.51255     4.32   0.000     189.9239    505.5273
            18  |    152.394   80.38487     1.90   0.058    -5.157465    309.9454
            19  |   499.0187    245.158     2.04   0.042     18.51781    979.5195
            20  |   1142.003   214.6522     5.32   0.000     721.2925    1562.714
            21  |   1376.757   348.3351     3.95   0.000     694.0327    2059.481
            22  |   35.23016     68.725     0.51   0.608    -99.46837    169.9287
            23  |  -165.5847   265.1874    -0.62   0.532    -685.3424    354.1731
            24  |   574.4935   132.5185     4.34   0.000      314.762    834.2251
            25  |   590.3733   150.0678     3.93   0.000     296.2458    884.5007
            26  |   230.5408   140.5888     1.64   0.101    -45.00828    506.0898
            27  |  -62.00577   263.8447    -0.24   0.814    -579.1319    455.1204
            28  |   514.5092   162.0982     3.17   0.002     196.8026    832.2158
            29  |  -77.95143   147.1727    -0.53   0.596    -366.4046    210.5017
            30  |   1439.483   449.7579     3.20   0.001     557.9739    2320.992
            31  |   149.7176   168.2062     0.89   0.373    -179.9604    479.3957
            32  |   243.3216   65.00267     3.74   0.000     115.9187    370.7245
                |
          _cons |    698.697   431.1828     1.62   0.105    -146.4058      1543.8
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.324
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.529
                         (Kleibergen-Paap rk Wald F statistic):         26.202
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------

. weakiv
Estimating confidence sets over 100 grid points
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100

Weak instrument robust tests and confidence sets for linear IV
H0: beta[rem_w1:dpt_tot_prop_w1] = 0
------------------------------------------------------------------------------
 Test |       Statistic         p-value |  Conf. level        Conf. Set       
------+---------------------------------+-------------------------------------
   AR | chi2(1)   =     6.47     0.0110 |      95%       [ .005891, .043831]  
------+---------------------------------+-------------------------------------
 Wald | chi2(1)   =     6.38     0.0116 |      95%       [ .005013, .039791]  
------------------------------------------------------------------------------
Confidence sets estimated for 100 points in [-.012376, .05718].
Number of obs N = 480.
Method = lagrange multiplier (LM).
Tests robust to heteroskedasticity.
Wald statistic in last row is based on ivreg2 estimation and is not robust to weak instruments.

. 
. 
. 
. /***** Tests of the exclusion restriction *****/
. /*** Conduct regression analysis ***/
. /** Exposure to unemployment in U.S. as instrumented variable **/
. // Clear storage
. eststo clear

. // Original data 
. eststo: xi: reg unemp_exp_wt sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(first).yr
>  ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(51, 428)        =     141.96
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9395
                                                Root MSE          =     .03808

------------------------------------------------------------------------------
             |               Robust
unemp_exp_wt | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   .0046405   .0027036     1.72   0.087    -.0006736    .0099545
  active_exp |  -.0093902   .0110204    -0.85   0.395     -.031051    .0122706
cons_exp_raw |  -.1033917   .0532036    -1.94   0.053    -.2079646    .0011811
         pop |   -.001431   .0072082    -0.20   0.843    -.0155989     .012737
   ann_pr_mx |   2.68e-06   .0000104     0.26   0.796    -.0000177     .000023
  avg_tmp_mx |  -.0004107   .0038505    -0.11   0.915     -.007979    .0071575
             |
          yr |
       2004  |  -.0109851   .0080085    -1.37   0.171    -.0267261    .0047558
       2005  |   -.039884   .0090527    -4.41   0.000    -.0576773   -.0220908
       2006  |  -.0631279   .0099938    -6.32   0.000    -.0827708   -.0434849
       2007  |  -.0576212   .0094195    -6.12   0.000    -.0761354   -.0391069
       2008  |  -.0188405   .0104577    -1.80   0.072    -.0393955    .0017144
       2009  |   .1381862   .0138421     9.98   0.000     .1109792    .1653932
       2010  |   .1646348    .019556     8.42   0.000     .1261972    .2030725
       2011  |   .1409567   .0230141     6.12   0.000      .095722    .1861914
       2012  |    .096824   .0236627     4.09   0.000     .0503143    .1433336
       2013  |   .0540782    .023642     2.29   0.023     .0076094     .100547
       2014  |  -.0008093   .0235348    -0.03   0.973    -.0470675     .045449
       2015  |  -.0438658   .0243296    -1.80   0.072    -.0916862    .0039547
       2016  |  -.0783227   .0254891    -3.07   0.002    -.1284222   -.0282233
       2017  |  -.1037176   .0459231    -2.26   0.024    -.1939804   -.0134548
             |
       mx_id |
          2  |    .025775   .0242886     1.06   0.289    -.0219648    .0735149
          3  |  -.3210419   .0869867    -3.69   0.000    -.4920162   -.1500675
          4  |  -.4022314   .0957657    -4.20   0.000    -.5904611   -.2140017
          5  |   -.283114   .0787791    -3.59   0.000     -.437956    -.128272
          6  |  -.3893276    .090706    -4.29   0.000    -.5676123    -.211043
          7  |  -.2204512   .0796861    -2.77   0.006     -.377076   -.0638264
          8  |  -.2817621   .0580901    -4.85   0.000    -.3959396   -.1675847
          9  |   .1225846   .0387482     3.16   0.002     .0464241    .1987451
         10  |  -.1099978   .0235679    -4.67   0.000     -.156321   -.0636747
         11  |  -.0490078    .104117    -0.47   0.638    -.2536521    .1556364
         12  |   .0965009   .0407426     2.37   0.018     .0164205    .1765813
         13  |  -.2117432   .0618229    -3.42   0.001    -.3332576   -.0902288
         14  |  -.1658682   .0389978    -4.25   0.000    -.2425193    -.089217
         15  |   .0793537   .0461339     1.72   0.086    -.0113236    .1700309
         16  |   .2016248   .0462934     4.36   0.000     .1106341    .2926155
         17  |  -.0058104   .0201234    -0.29   0.773    -.0453634    .0337426
         18  |   .1346487   .0311837     4.32   0.000     .0733564    .1959409
         19  |  -.1421194   .0353998    -4.01   0.000    -.2116986   -.0725403
         20  |    -.13618    .046103    -2.95   0.003    -.2267964   -.0455636
         21  |  -.1595602   .0608778    -2.62   0.009     -.279217   -.0399035
         22  |  -.0494208   .0105035    -4.71   0.000    -.0700657   -.0287758
         23  |  -.4276489   .1043545    -4.10   0.000      -.63276   -.2225379
         24  |   .0797058   .0423198     1.88   0.060    -.0034746    .1628863
         25  |   .0825173    .032729     2.52   0.012     .0181878    .1468469
         26  |  -.1153777   .0304111    -3.79   0.000    -.1751514   -.0556041
         27  |  -.3899889   .0967967    -4.03   0.000     -.580245   -.1997328
         28  |  -.1228955   .0276311    -4.45   0.000    -.1772049    -.068586
         29  |  -.1935317   .0465151    -4.16   0.000     -.284958   -.1021053
         30  |  -.2085374   .0745033    -2.80   0.005    -.3549754   -.0620995
         31  |  -.0330632   .0463591    -0.71   0.476    -.1241831    .0580568
         32  |  -.1026916   .0199164    -5.16   0.000    -.1418377   -.0635455
             |
       _cons |   .6135414   .1541681     3.98   0.000     .3105205    .9165623
------------------------------------------------------------------------------
(est1 stored)

. // Winsorized data (0.5, 99.5)
. winsor2 unemp_exp_wt, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. eststo: xi: reg unemp_exp_wt_w1 sc_cons_raw_w1 active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx 
> ib(first).yr ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(51, 428)        =     141.30
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9403
                                                Root MSE          =     .03773

---------------------------------------------------------------------------------
                |               Robust
unemp_exp_wt_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   .0044627   .0026752     1.67   0.096    -.0007955     .009721
  active_exp_w1 |  -.0084696   .0109265    -0.78   0.439    -.0299459    .0130066
cons_exp_raw_w1 |   -.095092   .0527016    -1.80   0.072    -.1986782    .0084942
            pop |  -.0016485   .0071693    -0.23   0.818    -.0157399    .0124428
      ann_pr_mx |   2.61e-06   .0000103     0.25   0.800    -.0000176    .0000229
     avg_tmp_mx |  -.0004909   .0038416    -0.13   0.898    -.0080417    .0070599
                |
             yr |
          2004  |  -.0119697   .0079664    -1.50   0.134    -.0276278    .0036885
          2005  |  -.0408379   .0090141    -4.53   0.000    -.0585552   -.0231205
          2006  |  -.0640414   .0099585    -6.43   0.000    -.0836151   -.0444677
          2007  |  -.0585701   .0093852    -6.24   0.000    -.0770169   -.0401233
          2008  |  -.0176947   .0103651    -1.71   0.089    -.0380675    .0026781
          2009  |   .1391374   .0138331    10.06   0.000     .1119482    .1663265
          2010  |   .1626988   .0191178     8.51   0.000     .1251224    .2002751
          2011  |   .1397306   .0228682     6.11   0.000     .0947826    .1846787
          2012  |   .0954626   .0236032     4.04   0.000       .04907    .1418552
          2013  |   .0526231   .0235574     2.23   0.026     .0063205    .0989258
          2014  |  -.0022525   .0234421    -0.10   0.923    -.0483285    .0438234
          2015  |  -.0452845   .0242338    -1.87   0.062    -.0929165    .0023475
          2016  |  -.0784603   .0254019    -3.09   0.002    -.1283883   -.0285323
          2017  |  -.1047006   .0456812    -2.29   0.022     -.194488   -.0149133
                |
          mx_id |
             2  |   .0283145   .0242002     1.17   0.243    -.0192517    .0758806
             3  |   -.307883   .0864638    -3.56   0.000    -.4778294   -.1379366
             4  |  -.3879208   .0951577    -4.08   0.000    -.5749553   -.2008863
             5  |  -.2716549   .0780346    -3.48   0.001    -.4250336   -.1182762
             6  |  -.3755586   .0898068    -4.18   0.000    -.5520759   -.1990413
             7  |  -.2113186   .0787903    -2.68   0.008    -.3661827   -.0564545
             8  |  -.2730952   .0576205    -4.74   0.000    -.3863496   -.1598409
             9  |   .1216424   .0386427     3.15   0.002     .0456894    .1975954
            10  |  -.1064559   .0233681    -4.56   0.000    -.1523865   -.0605253
            11  |  -.0431768   .1033843    -0.42   0.676    -.2463809    .1600273
            12  |   .0933931   .0407013     2.29   0.022     .0133939    .1733923
            13  |  -.2026669   .0613459    -3.30   0.001    -.3232436   -.0820902
            14  |  -.1601064   .0385822    -4.15   0.000    -.2359406   -.0842721
            15  |   .0804834   .0459753     1.75   0.081    -.0098819    .1708488
            16  |   .1940252    .045251     4.29   0.000     .1050833    .2829671
            17  |  -.0041469   .0200804    -0.21   0.836    -.0436154    .0353216
            18  |   .1324065   .0310827     4.26   0.000     .0713127    .1935003
            19  |   -.138851    .035129    -3.95   0.000    -.2078978   -.0698041
            20  |  -.1296745   .0456737    -2.84   0.005    -.2194472   -.0399018
            21  |  -.1510891   .0601923    -2.51   0.012    -.2693984   -.0327798
            22  |  -.0489331   .0105171    -4.65   0.000    -.0696048   -.0282615
            23  |  -.4116001   .1038134    -3.96   0.000    -.6156476   -.2075526
            24  |   .0742376   .0420733     1.76   0.078    -.0084583    .1569336
            25  |   .0821472   .0325945     2.52   0.012     .0180821    .1462123
            26  |  -.1112248   .0302182    -3.68   0.000    -.1706194   -.0518302
            27  |  -.3757411   .0960607    -3.91   0.000    -.5645505   -.1869318
            28  |   -.120912   .0274734    -4.40   0.000    -.1749115   -.0669124
            29  |  -.1866216   .0460968    -4.05   0.000    -.2772258   -.0960174
            30  |  -.1995244   .0737478    -2.71   0.007    -.3444773   -.0545714
            31  |  -.0280098   .0462328    -0.61   0.545    -.1188814    .0628619
            32  |  -.0997935    .019757    -5.05   0.000    -.1386262   -.0609607
                |
          _cons |   .5940395   .1526577     3.89   0.000     .2939873    .8940916
---------------------------------------------------------------------------------
(est2 stored)

. 
. /** Exposure to American wages as instrumented variable **/
. /*  Data from COSP */
. // Original data
. eststo: xi: reg wage_csp_wt sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(first).yr 
> ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(51, 428)        =    1720.73
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9937
                                                Root MSE          =     1.0521

------------------------------------------------------------------------------
             |               Robust
 wage_csp_wt | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |  -.0045504   .0773766    -0.06   0.953    -.1566358     .147535
  active_exp |   .9343647   .2845573     3.28   0.001     .3750611    1.493668
cons_exp_raw |  -14.81798   1.130938   -13.10   0.000    -17.04086    -12.5951
         pop |  -.1770365    .265788    -0.67   0.506    -.6994486    .3453756
   ann_pr_mx |   .0001013   .0003595     0.28   0.778    -.0006053    .0008078
  avg_tmp_mx |   .0573296   .0944077     0.61   0.544    -.1282308    .2428901
             |
          yr |
       2004  |   1.826548   .3321797     5.50   0.000     1.173641    2.479454
       2005  |   2.308304   .3562995     6.48   0.000      1.60799    3.008619
       2006  |   2.980241     .37117     8.03   0.000     2.250698    3.709784
       2007  |   6.184942   .3945834    15.67   0.000      5.40938    6.960505
       2008  |   4.227234   .3746114    11.28   0.000     3.490927     4.96354
       2009  |   5.385268   .4360801    12.35   0.000     4.528143    6.242393
       2010  |   3.043217   .5003088     6.08   0.000     2.059849    4.026585
       2011  |   2.232701   .6184968     3.61   0.000     1.017032     3.44837
       2012  |   2.824004   .6635611     4.26   0.000      1.51976    4.128248
       2013  |   2.767542   .6789999     4.08   0.000     1.432953    4.102132
       2014  |   4.810818   .6571741     7.32   0.000     3.519128    6.102508
       2015  |   5.177869   .6731551     7.69   0.000     3.854768     6.50097
       2016  |   4.649557   .7213406     6.45   0.000     3.231747    6.067368
       2017  |   6.186664     1.2255     5.05   0.000     3.777918    8.595411
             |
       mx_id |
          2  |   .3606566   .7210787     0.50   0.617     -1.05664    1.777953
          3  |  -40.77847   1.831031   -22.27   0.000     -44.3774   -37.17954
          4  |  -48.91117   1.875721   -26.08   0.000    -52.59794    -45.2244
          5  |  -35.24108   1.646596   -21.40   0.000     -38.4775   -32.00466
          6  |  -45.78873   1.934947   -23.66   0.000    -49.59192   -41.98555
          7  |  -26.14235   2.410203   -10.85   0.000    -30.87966   -21.40504
          8  |  -33.31019   1.215349   -27.41   0.000    -35.69899    -30.9214
          9  |   11.88694   .8935501    13.30   0.000     10.13065    13.64323
         10  |   -13.3623    .534489   -25.00   0.000    -14.41285   -12.31175
         11  |  -7.149987   3.804172    -1.88   0.061    -14.62717    .3271972
         12  |   12.87224   1.373973     9.37   0.000     10.17167    15.57281
         13  |  -27.56084   1.228822   -22.43   0.000    -29.97612   -25.14557
         14  |  -21.50622   .9062017   -23.73   0.000    -23.28738   -19.72506
         15  |   7.280346   1.662339     4.38   0.000     4.012982    10.54771
         16  |   21.74471   1.202615    18.08   0.000     19.38094    24.10847
         17  |  -.9899514   .4983836    -1.99   0.048    -1.969535   -.0103675
         18  |   15.14869   .6663122    22.74   0.000     13.83903    16.45834
         19  |  -15.53173   .9476967   -16.39   0.000    -17.39445   -13.66901
         20  |  -17.89895   1.031973   -17.34   0.000    -19.92732   -15.87059
         21  |  -20.33578   1.549255   -13.13   0.000    -23.38087   -17.29068
         22  |  -5.106214   .3680098   -13.88   0.000    -5.829545   -4.382882
         23  |  -51.76414   1.993199   -25.97   0.000    -55.68182   -47.84647
         24  |   12.21469   1.090155    11.20   0.000     10.07197    14.35742
         25  |   8.080826   .9676718     8.35   0.000     6.178846    9.982807
         26  |  -14.55396    .744207   -19.56   0.000    -16.01672   -13.09121
         27  |  -47.87454   1.800158   -26.59   0.000    -51.41279   -44.33629
         28  |   -12.8371   .8101163   -15.85   0.000     -14.4294    -11.2448
         29  |  -22.35214    1.05707   -21.15   0.000    -24.42984   -20.27445
         30  |  -27.46666   1.971024   -13.94   0.000    -31.34075   -23.59257
         31  |   -6.99388   .9445703    -7.40   0.000    -8.850454   -5.137306
         32  |  -11.83258   .4774823   -24.78   0.000    -12.77109   -10.89408
             |
       _cons |    69.0931   3.705687    18.65   0.000     61.80949    76.37671
------------------------------------------------------------------------------
(est3 stored)

. // Winsorized data (0.5, 99.5)
. winsor2 wage_csp_wt, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. eststo: xi: reg wage_csp_wt_w1 sc_cons_raw_w1 active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx i
> b(first).yr ib(first).mx_id, robust

Linear regression                               Number of obs     =        480
                                                F(51, 428)        =    1732.25
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9937
                                                Root MSE          =     1.0499

---------------------------------------------------------------------------------
                |               Robust
 wage_csp_wt_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |  -.0044509   .0771619    -0.06   0.954    -.1561144    .1472126
  active_exp_w1 |   .9264333   .2847942     3.25   0.001     .3666639    1.486203
cons_exp_raw_w1 |  -14.45257   1.148094   -12.59   0.000    -16.70917   -12.19596
            pop |  -.1700359   .2675476    -0.64   0.525    -.6959066    .3558349
      ann_pr_mx |    .000133   .0003592     0.37   0.711    -.0005731     .000839
     avg_tmp_mx |   .0541577   .0953449     0.57   0.570    -.1332448    .2415602
                |
             yr |
          2004  |   1.792153   .3336015     5.37   0.000     1.136452    2.447854
          2005  |   2.277716   .3573294     6.37   0.000     1.575377    2.980054
          2006  |   2.951363   .3722968     7.93   0.000     2.219605     3.68312
          2007  |   6.155295   .3938402    15.63   0.000     5.381193    6.929397
          2008  |   4.288918   .3759982    11.41   0.000     3.549886    5.027951
          2009  |   5.455969   .4369742    12.49   0.000     4.597087    6.314852
          2010  |   3.123429   .4998424     6.25   0.000     2.140977     4.10588
          2011  |   2.326426   .6177557     3.77   0.000     1.112214    3.540639
          2012  |    2.90391   .6641179     4.37   0.000     1.598572    4.209248
          2013  |   2.843256   .6793725     4.19   0.000     1.507934    4.178577
          2014  |   4.886461   .6605581     7.40   0.000      3.58812    6.184803
          2015  |   5.256264   .6768811     7.77   0.000      3.92584    6.586689
          2016  |   4.746702   .7198254     6.59   0.000     3.331869    6.161535
          2017  |   6.259124   1.230771     5.09   0.000     3.840017    8.678231
                |
          mx_id |
             2  |   .4642554   .7212808     0.64   0.520     -.953438    1.881949
             3  |  -40.20844   1.847998   -21.76   0.000    -43.84072   -36.57616
             4  |  -48.34531    1.89052   -25.57   0.000    -52.06117   -44.62945
             5  |  -34.86645   1.664849   -20.94   0.000    -38.13875   -31.59416
             6  |  -45.25512   1.968939   -22.98   0.000    -49.12512   -41.38513
             7  |  -25.89732   2.433633   -10.64   0.000    -30.68068   -21.11396
             8  |   -32.9743   1.228082   -26.85   0.000    -35.38813   -30.56048
             9  |   11.85479   .9074905    13.06   0.000     10.07109    13.63848
            10  |  -13.22547   .5429366   -24.36   0.000    -14.29263   -12.15832
            11  |   -7.14844   3.829241    -1.87   0.063     -14.6749    .3780177
            12  |   12.66261   1.385982     9.14   0.000     9.938434    15.38679
            13  |  -27.23082   1.239808   -21.96   0.000    -29.66769   -24.79395
            14  |  -21.29607   .9221949   -23.09   0.000    -23.10867   -19.48348
            15  |   7.225535   1.673989     4.32   0.000     3.935273     10.5158
            16  |   21.29945   1.210556    17.59   0.000     18.92008    23.67883
            17  |  -.9410706     .50457    -1.87   0.063    -1.932814    .0506728
            18  |   15.04123   .6850901    21.96   0.000     13.69467    16.38779
            19  |  -15.46115   .9581053   -16.14   0.000    -17.34433   -13.57798
            20  |  -17.68881   1.043429   -16.95   0.000    -19.73969   -15.63793
            21  |  -20.06963   1.566934   -12.81   0.000    -23.14948   -16.98979
            22  |  -5.107737   .3699136   -13.81   0.000     -5.83481   -4.380663
            23  |  -51.08115   2.001091   -25.53   0.000    -55.01434   -47.14796
            24  |    11.9421   1.104532    10.81   0.000     9.771113    14.11308
            25  |   8.040881   .9878675     8.14   0.000     6.099205    9.982556
            26  |  -14.39611   .7488399   -19.22   0.000    -15.86797   -12.92425
            27  |  -47.35286   1.817553   -26.05   0.000     -50.9253   -43.78041
            28  |  -12.80315   .8152016   -15.71   0.000    -14.40545   -11.20086
            29  |  -22.07493   1.076551   -20.51   0.000    -24.19091   -19.95894
            30  |  -27.23954   1.990399   -13.69   0.000    -31.15171   -23.32737
            31  |  -6.802112   .9452523    -7.20   0.000    -8.660026   -4.944197
            32  |  -11.71803   .4850904   -24.16   0.000    -12.67148   -10.76457
                |
          _cons |   68.19266   3.786716    18.01   0.000     60.74979    75.63554
---------------------------------------------------------------------------------
(est4 stored)

. 
. /* Data from MMP */
. // Original data
. eststo: xi: reg w_mmp_wt sc_cons_raw active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(first).yr ib(
> first).mx_id, robust

Linear regression                               Number of obs     =        475
                                                F(51, 423)        =      17.96
                                                Prob > F          =     0.0000
                                                R-squared         =     0.7244
                                                Root MSE          =     36.737

------------------------------------------------------------------------------
             |               Robust
    w_mmp_wt | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   -4.67381    2.86829    -1.63   0.104    -10.31169    .9640674
  active_exp |   30.52115   9.708009     3.14   0.002     11.43921     49.6031
cons_exp_raw |  -151.6681   49.15109    -3.09   0.002    -248.2789   -55.05732
         pop |   .8149224   9.399451     0.09   0.931    -17.66053    19.29037
   ann_pr_mx |  -.0205308    .011562    -1.78   0.076     -.043257    .0021954
  avg_tmp_mx |   -1.45285   4.158608    -0.35   0.727    -9.626959    6.721259
             |
          yr |
       2004  |   18.19357   7.997548     2.27   0.023     2.473683    33.91345
       2005  |   15.20019   8.657973     1.76   0.080    -1.817819     32.2182
       2006  |   7.649378    8.87901     0.86   0.389    -9.803097    25.10185
       2007  |   11.09074   9.047848     1.23   0.221    -6.693597    28.87509
       2008  |  -12.09982   11.38678    -1.06   0.289    -34.48154     10.2819
       2009  |  -32.16337   12.18343    -2.64   0.009    -56.11097   -8.215761
       2010  |  -67.78984   15.45871    -4.39   0.000    -98.17528   -37.40439
       2011  |  -49.50247   18.69158    -2.65   0.008    -86.24241   -12.76253
       2012  |  -86.40423   19.27404    -4.48   0.000    -124.2891    -48.5194
       2013  |  -72.92085   20.35691    -3.58   0.000    -112.9341   -32.90755
       2014  |  -43.99985   19.91884    -2.21   0.028    -83.15208   -4.847621
       2015  |  -89.53471   19.68868    -4.55   0.000    -128.2346   -50.83487
       2016  |  -94.16879   24.18585    -3.89   0.000    -141.7082   -46.62938
       2017  |  -48.18651   51.26029    -0.94   0.348    -148.9431    52.57011
             |
       mx_id |
          2  |  -84.55524   28.11431    -3.01   0.003    -139.8164   -29.29408
          3  |  -285.2009   76.66995    -3.72   0.000    -435.9024   -134.4993
          4  |  -266.3229   81.87718    -3.25   0.001    -427.2597   -105.3861
          5  |  -186.1016   77.81127    -2.39   0.017    -339.0465   -33.15668
          6  |  -297.3265   85.80877    -3.46   0.001    -465.9912   -128.6618
          7  |  -205.1395   98.89345    -2.07   0.039    -399.5233   -10.75577
          8  |  -207.4465   53.82307    -3.85   0.000    -313.2405   -101.6526
          9  |   74.82236      38.75     1.93   0.054    -1.344177    150.9889
         10  |   -92.6596   23.42882    -3.95   0.000     -138.711   -46.60821
         11  |  -80.71298   136.3369    -0.59   0.554    -348.6952    187.2692
         12  |    90.7227   41.68219     2.18   0.030     8.792676    172.6527
         13  |  -142.1785   60.84319    -2.34   0.020    -261.7711   -22.58582
         14  |  -132.0546    39.6496    -3.33   0.001    -209.9894   -54.11986
         15  |   53.32939   54.22393     0.98   0.326    -53.25252    159.9113
         16  |   140.4118   53.63362     2.62   0.009      34.9902    245.8334
         17  |  -1.661586   27.57868    -0.06   0.952     -55.8699    52.54673
         18  |   104.2364   32.93282     3.17   0.002     39.50402    168.9687
         19  |  -72.57097   39.88227    -1.82   0.070    -150.9631     5.82115
         20  |  -79.97043   50.07797    -1.60   0.111    -178.4031    18.46224
         21  |  -132.3142   68.25708    -1.94   0.053    -266.4795    1.851099
         22  |  -16.54888   14.85721    -1.11   0.266    -45.75205    12.65428
         23  |  -284.0759   88.84819    -3.20   0.001    -458.7148   -109.4369
         24  |   82.51649   41.86222     1.97   0.049     .2326227    164.8004
         25  |   16.01663   34.61776     0.46   0.644    -52.02762    84.06088
         26  |  -134.7811     31.959    -4.22   0.000    -197.5994   -71.96291
         27  |  -255.8202   84.89498    -3.01   0.003    -422.6888   -88.95169
         28  |  -47.05999   32.08246    -1.47   0.143    -110.1209     16.0009
         29  |  -165.9512   43.26108    -3.84   0.000    -250.9847   -80.91778
         30  |  -139.4466   84.22285    -1.66   0.099     -304.994    26.10083
         31  |  -86.01812   46.96819    -1.83   0.068    -178.3382     6.30199
         32  |  -86.27455   19.87462    -4.34   0.000    -125.3399   -47.20923
             |
       _cons |   501.2138   154.1285     3.25   0.001     198.2607    804.1669
------------------------------------------------------------------------------
(est5 stored)

. // Winsorized data (0.5, 99.5)
. winsor2 w_mmp_wt, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. eststo: xi: reg w_mmp_wt_w1 sc_cons_raw_w1 active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx ib(f
> irst).yr ib(first).mx_id, robust

Linear regression                               Number of obs     =        475
                                                F(51, 423)        =      18.78
                                                Prob > F          =     0.0000
                                                R-squared         =     0.7429
                                                Root MSE          =     34.103

---------------------------------------------------------------------------------
                |               Robust
    w_mmp_wt_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |  -4.842862   2.781795    -1.74   0.082    -10.31072    .6250002
  active_exp_w1 |   30.83696   9.488352     3.25   0.001     12.18677    49.48715
cons_exp_raw_w1 |  -135.6674   42.27061    -3.21   0.001     -218.754    -52.5808
            pop |   .6845316   9.547946     0.07   0.943     -18.0828    19.45186
      ann_pr_mx |   -.019693   .0113336    -1.74   0.083    -.0419702    .0025842
     avg_tmp_mx |  -1.129063   3.894784    -0.29   0.772    -8.784603    6.526476
                |
             yr |
          2004  |   16.73671   7.482914     2.24   0.026     2.028383    31.44504
          2005  |   13.75966   8.112226     1.70   0.091    -2.185636    29.70495
          2006  |   6.309467   8.350317     0.76   0.450    -10.10382    22.72275
          2007  |     9.7854   8.538736     1.15   0.252    -6.998237    26.56904
          2008  |  -9.314567   10.64166    -0.88   0.382    -30.23168    11.60255
          2009  |  -29.37436   11.53542    -2.55   0.011    -52.04825   -6.700477
          2010  |  -64.80205   14.65699    -4.42   0.000    -93.61165   -35.99246
          2011  |  -46.59329   18.04544    -2.58   0.010    -82.06319   -11.12338
          2012  |  -84.07159    18.6973    -4.50   0.000    -120.8228   -47.32041
          2013  |  -70.65639    19.8615    -3.56   0.000    -109.6959   -31.61686
          2014  |   -41.7364   19.46935    -2.14   0.033    -80.00512   -3.467682
          2015  |  -87.28915   19.14147    -4.56   0.000    -124.9134    -49.6649
          2016  |   -89.3577   23.04058    -3.88   0.000     -134.646   -44.06942
          2017  |  -45.30584   49.27157    -0.92   0.358    -142.1534    51.54177
                |
          mx_id |
             2  |  -79.45583     27.142    -2.93   0.004    -132.8058   -26.10584
             3  |  -262.7031   68.15589    -3.85   0.000    -396.6695   -128.7367
             4  |  -244.6699    73.7863    -3.32   0.001    -389.7034   -99.63642
             5  |  -170.2176   73.38549    -2.32   0.021    -314.4633   -25.97199
             6  |  -272.2443   76.10415    -3.58   0.000    -421.8337   -122.6549
             7  |  -188.2977   95.22914    -1.98   0.049    -375.4789   -1.116407
             8  |  -193.0609   49.10826    -3.93   0.000    -289.5875   -96.53433
             9  |   69.67987   36.27757     1.92   0.055    -1.626888    140.9866
            10  |  -86.24719   21.09247    -4.09   0.000    -127.7063   -44.78808
            11  |  -73.29001   137.6315    -0.53   0.595    -343.8168    197.2368
            12  |   83.40169    40.6041     2.05   0.041     3.590756    163.2126
            13  |  -129.3225   57.26256    -2.26   0.024    -241.8771   -16.76789
            14  |  -121.3146   35.62112    -3.41   0.001    -191.3311   -51.29816
            15  |   52.53989   54.76928     0.96   0.338    -55.11395    160.1937
            16  |   120.0218   42.73741     2.81   0.005     36.01764    204.0259
            17  |  -.9164291   27.54015    -0.03   0.973    -55.04902    53.21616
            18  |   98.04653   31.85286     3.08   0.002     35.43693    160.6561
            19  |   -69.7471   39.98389    -1.74   0.082     -148.339    8.844759
            20  |  -71.02718   48.14257    -1.48   0.141    -165.6556    23.60128
            21  |   -118.997   65.28888    -1.82   0.069     -247.328    9.334064
            22  |  -15.29598    14.4255    -1.06   0.290    -43.65056    13.05861
            23  |  -259.9696   80.04209    -3.25   0.001    -417.2994   -102.6398
            24  |   70.68086   37.34742     1.89   0.059    -2.728782    144.0905
            25  |    12.2029   32.92834     0.37   0.711    -52.52065    76.92646
            26  |  -129.0189   30.63678    -4.21   0.000    -189.2382   -68.79962
            27  |  -235.3982   77.51474    -3.04   0.003    -387.7603   -83.03618
            28  |  -47.00938   31.86655    -1.48   0.141    -109.6459    15.62713
            29  |  -152.8504   37.54156    -4.07   0.000    -226.6416   -79.05916
            30  |  -128.7396   82.93837    -1.55   0.121    -291.7622     34.2831
            31  |   -81.0683   44.91915    -1.80   0.072    -169.3608    7.224253
            32  |  -80.79778   17.86382    -4.52   0.000    -115.9107   -45.68487
                |
          _cons |   454.2916    132.473     3.43   0.001     193.9044    714.6789
---------------------------------------------------------------------------------
(est6 stored)

. // Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s', 'threeparttable', and 'pdflscape' packages. Next, add \begin{document} and \end{document} appropri
> ately. After, add \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \e
> nd{table}. Move notes from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which sh
> ould sit between \end{tabular} and \end{threeparttable}. Set table in \footnotesize and notes in \scri
> ptsize. Finally, add headers to denote models in which wages and unemployment serve as dependent varia
> ble
. esttab est1 est2 est3 est4 est5 est6 using "$data/exc.tex", replace b(3) se(3) star(* 0.1 ** 0.05 *** 
> 0.01) drop(*yr *mx_id) label nonumber mtitle("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}" "\t
> extit{Original}" "\textit{Winsorized (0.5, 99.5)}" "\textit{Original}" "\textit{Winsorized (0.5, 99.5)
> }") mgroups("" "Correlates of State Policy" "Mexican Migration Project", pattern(1 0 1 0 1 0) prefix(\
> multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Policy and Partis
> anship on Exposure to Wages and Unemployment in the U.S.) rename(unemp_exp_wt_w1 unemp_exp_wt wage_csp
> _wt wage_csp_wt_w1 w_mmp_wt w_mmp_wt_w1 sc_cons_raw_w1 sc_cons_raw active_exp_w1 active_exp cons_exp_r
> aw_w1 cons_exp_raw) stats(N F p r2, fmt(0 3 3 3) label(Observations \(F\) Prob\(>\)F \(R\)$^{2}$ )) ad
> dnote("OLS regression. Robust standard errors in parentheses. All models contain state and year fixed 
> effects.") booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/exc.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/exc.tex)

. 
. 
. 
. /***** Conduct regression with standardized coefficients *****/
. /*** Instrumental variable regression with standardized explanatory variables, robust standard errors 
> as well as state and year fixed effects. Use the first state and year as the reference category. ***/
. /* Raw data */
. // Clear storage
. eststo clear

. // Without control variables
. tsset mx_id yr

Panel variable: mx_id (strongly balanced)
 Time variable: yr, 2003 to 2017
         Delta: 1 unit

. eststo: xi: ivreg2 rem (dpt_st=ins_st) active_st cons_st ib(first).yr ib(first).mx_id, robust first sa
> vefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------
 est1_dpt_st | ivreg2       dpt_st         51  First-stage regression: dpt_st
-----------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_st:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
      dpt_st | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
      ins_st |   .2405166   .0481339     5.00   0.000     .1459102     .335123
   active_st |    -.33943   .1138109    -2.98   0.003    -.5631234   -.1157365
     cons_st |   .0413343   .2215649     0.19   0.852    -.3941478    .4768164
             |
          yr |
       2004  |   .0778168   .0994961     0.78   0.435    -.1177411    .2733746
       2005  |   .0355938   .1004806     0.35   0.723    -.1618991    .2330868
       2006  |   .1550719   .0915053     1.69   0.091    -.0247803    .3349241
       2007  |   .4578875   .0794164     5.77   0.000      .301796    .6139791
       2008  |   .8022959   .0969562     8.27   0.000     .6117301    .9928616
       2009  |   1.036468    .109925     9.43   0.000     .8204119    1.252523
       2010  |    1.36812   .1504194     9.10   0.000     1.072474    1.663767
       2011  |   1.752196   .2092475     8.37   0.000     1.340923    2.163468
       2012  |   1.761765   .2178273     8.09   0.000     1.333629    2.189901
       2013  |   1.432314   .2042907     7.01   0.000     1.030784    1.833844
       2014  |   1.095538   .2022839     5.42   0.000     .6979526    1.493124
       2015  |   .9282754   .2031579     4.57   0.000     .5289719    1.327579
       2016  |    1.01559   .2073093     4.90   0.000     .6081269    1.423053
       2017  |   .4525941   .2330486     1.94   0.053     -.005459    .9106472
             |
       mx_id |
          2  |  -1.795386   .1615354   -11.11   0.000    -2.112881   -1.477891
          3  |  -2.324461   .5579968    -4.17   0.000    -3.421194   -1.227727
          4  |  -2.323238   .5861244    -3.96   0.000    -3.475255    -1.17122
          5  |  -1.669921   .4364213    -3.83   0.000      -2.5277   -.8121421
          6  |  -2.083231   .5685993    -3.66   0.000    -3.200804   -.9656588
          7  |   -1.96254    .354186    -5.54   0.000    -2.658686   -1.266393
          8  |  -1.222177   .3544827    -3.45   0.001    -1.918907    -.525447
          9  |  -1.396496   .1347925   -10.36   0.000    -1.661428   -1.131563
         10  |  -.0190256   .2001286    -0.10   0.924    -.4123751    .3743238
         11  |  -1.068724   .1565089    -6.83   0.000    -1.376339   -.7611079
         12  |   1.170131   .3462554     3.38   0.001     .4895717     1.85069
         13  |  -1.257149   .3534807    -3.56   0.000     -1.95191    -.562389
         14  |  -1.169928   .2517292    -4.65   0.000    -1.664698   -.6751584
         15  |  -.6692654   .1132955    -5.91   0.000    -.8919458   -.4465851
         16  |  -.2583159    .246334    -1.05   0.295    -.7424812    .2258494
         17  |   -.480384   .1242952    -3.86   0.000    -.7246842   -.2360839
         18  |  -.3312421   .1812837    -1.83   0.068    -.6875522    .0250679
         19  |  -1.143888   .1372244    -8.34   0.000      -1.4136   -.8741757
         20  |  -.9199454   .2543338    -3.62   0.000    -1.419834   -.4200566
         21  |  -1.545645   .3267989    -4.73   0.000    -2.187962   -.9033267
         22  |   .2768429   .1799408     1.54   0.125    -.0768278    .6305137
         23  |  -2.188461   .6210594    -3.52   0.000    -3.409143   -.9677787
         24  |   .2542892   .3123026     0.81   0.416    -.3595364    .8681149
         25  |  -1.372693   .1474974    -9.31   0.000    -1.662597    -1.08279
         26  |  -1.133042   .2209929    -5.13   0.000      -1.5674   -.6986841
         27  |  -2.103123   .5591166    -3.76   0.000    -3.202057   -1.004188
         28  |  -1.046486   .1114559    -9.39   0.000    -1.265551   -.8274212
         29  |  -1.661688   .3193438    -5.20   0.000    -2.289353   -1.034023
         30  |  -1.147733   .3126496    -3.67   0.000    -1.762241   -.5332257
         31  |  -1.842596   .2138363    -8.62   0.000    -2.262888   -1.422304
         32  |   .0381986    .187801     0.20   0.839    -.3309212    .4073183
             |
       _cons |   .2068945   .2157302     0.96   0.338    -.2171197    .6309086
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_st       |      24.97    0.0000 |       27.81   0.0000 |       24.97

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.76    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.55
Kleibergen-Paap Wald rk F statistic                                24.97

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.21     P-val=0.0131
Anderson-Rubin Wald test           Chi-sq(1)=      6.92     P-val=0.0085
Stock-Wright LM S statistic        Chi-sq(1)=      7.86     P-val=0.0051

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   156.60
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9550
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9801
Residual SS             =   8156151.17                Root MSE      =    130.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
      dpt_st |   131.4793   51.60515     2.55   0.011     30.33502    232.6235
   active_st |  -27.16709   18.91094    -1.44   0.151    -64.23186    9.897676
     cons_st |  -148.4175   90.13542    -1.65   0.100    -325.0797    28.24466
             |
          yr |
       2004  |   119.4085   34.62332     3.45   0.001     51.54804     187.269
       2005  |   229.8513   34.30454     6.70   0.000     162.6156    297.0869
       2006  |   335.3475   41.56583     8.07   0.000       253.88    416.8151
       2007  |    310.908   47.61961     6.53   0.000     217.5753    404.2408
       2008  |   171.4135   57.77331     2.97   0.003     58.17986    284.6471
       2009  |   32.83516   62.60032     0.52   0.600    -89.85921    155.5295
       2010  |   52.86725   59.54522     0.89   0.375    -63.83924    169.5737
       2011  |   79.68546   70.42225     1.13   0.258    -58.33962    217.7105
       2012  |   85.82807   68.46431     1.25   0.210    -48.35952    220.0157
       2013  |   130.0358   57.42931     2.26   0.024     17.47646    242.5952
       2014  |   216.3316   49.74305     4.35   0.000      118.837    313.8262
       2015  |   273.8697   43.74784     6.26   0.000     188.1255    359.6139
       2016  |   306.6835   49.35034     6.21   0.000     209.9586    403.4084
       2017  |  -7.838001   58.35669    -0.13   0.893     -122.215     106.539
             |
       mx_id |
          2  |   269.0648   117.7774     2.28   0.022     38.22536    499.9043
          3  |  -370.4242   236.0113    -1.57   0.117    -832.9978    92.14938
          4  |  -381.9207   241.8377    -1.58   0.114    -855.9139     92.0726
          5  |   216.7599   183.4746     1.18   0.237    -142.8438    576.3635
          6  |  -5.505874   232.0979    -0.02   0.981    -460.4095    449.3977
          7  |   831.7008   166.3474     5.00   0.000     505.6658    1157.736
          8  |  -125.9098   145.3388    -0.87   0.386    -410.7686     158.949
          9  |   90.66149   87.56128     1.04   0.300    -80.95546    262.2784
         10  |    3.37911    68.5772     0.05   0.961    -131.0297    137.7879
         11  |   1344.875   100.5449    13.38   0.000      1147.81    1541.939
         12  |   1660.124   113.0853    14.68   0.000     1438.481    1881.767
         13  |   815.3482   149.2347     5.46   0.000     522.8535    1107.843
         14  |   428.9553    112.013     3.83   0.000     209.4139    648.4968
         15  |    1614.22   69.75836    23.14   0.000     1477.496    1750.944
         16  |   2076.815   102.8923    20.18   0.000      1875.15     2278.48
         17  |   237.6968     43.901     5.41   0.000     151.6524    323.7412
         18  |   132.0328   59.28216     2.23   0.026     15.84195    248.2237
         19  |   158.5969   80.33492     1.97   0.048     1.143305    316.0504
         20  |   870.0093   112.3763     7.74   0.000     649.7557    1090.263
         21  |   983.9017    153.529     6.41   0.000     682.9904    1284.813
         22  |   29.56723   44.72944     0.66   0.509    -58.10086    117.2353
         23  |  -399.8922   253.6389    -1.58   0.115    -897.0153    97.23089
         24  |   482.5852   108.5419     4.45   0.000      269.847    695.3233
         25  |    373.849   83.55367     4.47   0.000     210.0868    537.6112
         26  |   25.27345   88.80404     0.28   0.776    -148.7793    199.3262
         27  |  -324.3152   232.2406    -1.40   0.163    -779.4983     130.868
         28  |   275.8353   68.26739     4.04   0.000     142.0337     409.637
         29  |  -74.16565    143.293    -0.52   0.605    -355.0148    206.6835
         30  |    853.724   143.2715     5.96   0.000      572.917    1134.531
         31  |  -74.67037    124.524    -0.60   0.549    -318.7328    169.3921
         32  |    215.361   60.06875     3.59   0.000     97.62838    333.0936
             |
       _cons |   153.6971   86.43231     1.78   0.075    -15.70715    323.1013
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.763
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.549
                         (Kleibergen-Paap rk Wald F statistic):         24.968
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_st
Included instruments: active_st cons_st 2004.yr 2005.yr 2006.yr 2007.yr 2008.yr
                      2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr 2015.yr
                      2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id
                      7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: ins_st
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_st=ins_st) active_st cons_st pop_st pr_st tmp_st ib(first).yr ib(first).mx
> _id, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------
 est2_dpt_st | ivreg2       dpt_st         54  First-stage regression: dpt_st
-----------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_st:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
      dpt_st | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
      ins_st |   .2434122   .0480442     5.07   0.000     .1489803    .3378441
   active_st |   -.353316   .1156871    -3.05   0.002    -.5807016   -.1259304
     cons_st |   .0813569   .2190983     0.37   0.711    -.3492857    .5119995
      pop_st |   .5018481   .2491684     2.01   0.045     .0121021     .991594
       pr_st |   .0621699   .0415485     1.50   0.135    -.0194946    .1438344
      tmp_st |  -.3623992   .1800015    -2.01   0.045    -.7161961   -.0086024
             |
          yr |
       2004  |   .0707562   .1044147     0.68   0.498    -.1344732    .2759856
       2005  |   .0819631   .1078169     0.76   0.448    -.1299534    .2938795
       2006  |   .1936564   .1045906     1.85   0.065    -.0119187    .3992315
       2007  |   .4790606   .0937453     5.11   0.000     .2948022     .663319
       2008  |   .8133568   .1122188     7.25   0.000     .5927882    1.033925
       2009  |   1.095293   .1317625     8.31   0.000     .8363106    1.354275
       2010  |   1.351625   .1567894     8.62   0.000     1.043452    1.659798
       2011  |    1.80384    .212835     8.48   0.000     1.385508    2.222172
       2012  |   1.792638   .2228897     8.04   0.000     1.354543    2.230732
       2013  |   1.423156   .2060198     6.91   0.000     1.018219    1.828092
       2014  |   1.082339   .2036113     5.32   0.000     .6821361    1.482541
       2015  |   .9371005   .2058303     4.55   0.000     .5325366    1.341664
       2016  |   1.035647   .2085428     4.97   0.000     .6257517    1.445543
       2017  |  -.3175201   .5328978    -0.60   0.552    -1.364942    .7299022
             |
       mx_id |
          2  |  -2.088353    .236121    -8.84   0.000    -2.552454   -1.624252
          3  |  -1.738201   .6004167    -2.89   0.004    -2.918334    -.558069
          4  |  -1.632692   .6753328    -2.42   0.016    -2.960074   -.3053108
          5  |  -1.880488   .6130292    -3.07   0.002    -3.085411   -.6755659
          6  |  -2.476045    .637787    -3.88   0.000     -3.72963   -1.222461
          7  |  -3.731747   .8698489    -4.29   0.000    -5.441455    -2.02204
          8  |  -1.218164   .4105206    -2.97   0.003    -2.025051   -.4112768
          9  |  -.7222898   .3537693    -2.04   0.042    -1.417631   -.0269483
         10  |  -.1153903   .2061251    -0.56   0.576    -.5205337    .2897531
         11  |  -3.671643   1.232454    -2.98   0.003    -6.094059   -1.249227
         12  |   .4433502   .4813936     0.92   0.358    -.5028395     1.38954
         13  |  -1.138644   .4772607    -2.39   0.017    -2.076711   -.2005777
         14  |   -1.54583   .3082924    -5.01   0.000    -2.151785   -.9398744
         15  |   -1.55235   .5136974    -3.02   0.003    -2.562034   -.5426668
         16  |  -.5403806   .3554383    -1.52   0.129    -1.239002    .1582411
         17  |  -.2972621   .2099097    -1.42   0.157    -.7098442      .11532
         18  |  -.0930349   .2400758    -0.39   0.699    -.5649092    .3788394
         19  |  -1.461488   .3502239    -4.17   0.000    -2.149861   -.7731155
         20  |  -1.111733   .3796509    -2.93   0.004    -1.857945   -.3655203
         21  |  -2.255498   .5433234    -4.15   0.000    -3.323412   -1.187584
         22  |  -.0192876   .2048261    -0.09   0.925    -.4218778    .3833027
         23  |   -1.56066   .7152609    -2.18   0.030    -2.966521   -.1547989
         24  |   .1097998   .3226285     0.34   0.734    -.5243337    .7439332
         25  |   -1.17897   .2898055    -4.07   0.000     -1.74859   -.6093514
         26  |  -1.046408   .2935683    -3.56   0.000    -1.623423   -.4693928
         27  |  -1.696299   .6736932    -2.52   0.012    -3.020458   -.3721398
         28  |  -1.041267   .2676871    -3.89   0.000    -1.567412   -.5151218
         29  |  -1.800391   .3310202    -5.44   0.000    -2.451019   -1.149764
         30  |  -1.859757   .6852878    -2.71   0.007    -3.206706   -.5128091
         31  |  -1.329503   .4121533    -3.23   0.001    -2.139599   -.5194065
         32  |  -.0510541   .1895781    -0.27   0.788    -.4236739    .3215658
             |
       _cons |   .4261264   .3139271     1.36   0.175    -.1909042    1.043157
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_st       |      25.67    0.0000 |       28.79   0.0000 |       25.67

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.16    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      41.07
Kleibergen-Paap Wald rk F statistic                                25.67

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       6.20     P-val=0.0131
Anderson-Rubin Wald test           Chi-sq(1)=      6.96     P-val=0.0084
Stock-Wright LM S statistic        Chi-sq(1)=      8.49     P-val=0.0036

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   157.86
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9563
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9807
Residual SS             =  7916177.198                Root MSE      =    128.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
      dpt_st |   125.7004   49.26451     2.55   0.011     29.14375    222.2571
   active_st |  -21.61506    17.7692    -1.22   0.224    -56.44205    13.21192
     cons_st |   -125.534   89.59898    -1.40   0.161    -301.1447     50.0768
      pop_st |  -222.5723    182.923    -1.22   0.224    -581.0947    135.9501
       pr_st |   20.28389   16.69482     1.21   0.224    -12.43736    53.00515
      tmp_st |  -86.44117   60.14388    -1.44   0.151     -204.321    31.43868
             |
          yr |
       2004  |   122.8847   37.83337     3.25   0.001     48.73265    197.0367
       2005  |   252.0758   37.69413     6.69   0.000     178.1966    325.9549
       2006  |   363.8431   44.51075     8.17   0.000     276.6036    451.0826
       2007  |   343.5842   49.76179     6.90   0.000     246.0529    441.1155
       2008  |   215.4816   59.35135     3.63   0.000     99.15514    331.8082
       2009  |   95.91826   67.20011     1.43   0.153    -35.79154    227.6281
       2010  |   94.31788   61.60475     1.53   0.126     -26.4252     215.061
       2011  |   141.1426   75.65194     1.87   0.062    -7.132421    289.4177
       2012  |   144.9533   73.67699     1.97   0.049     .5490628    289.3576
       2013  |   180.2593   62.14437     2.90   0.004     58.45862    302.0601
       2014  |   268.6706    57.1946     4.70   0.000     156.5713      380.77
       2015  |   336.2538   54.43996     6.18   0.000     229.5534    442.9542
       2016  |   379.6091    60.6132     6.26   0.000     260.8094    498.4088
       2017  |  -114.9845   160.7574    -0.72   0.474    -430.0632    200.0941
             |
       mx_id |
          2  |    426.363   179.4058     2.38   0.017     74.73406     777.992
          3  |  -267.6154   234.1067    -1.14   0.253     -726.456    191.2253
          4  |   -238.694   251.0196    -0.95   0.342    -730.6834    253.2953
          5  |   589.1078    317.828     1.85   0.064    -33.82362    1212.039
          6  |   189.8482   285.8881     0.66   0.507    -370.4822    750.1786
          7  |   1312.035   538.1013     2.44   0.015     257.3758    2366.694
          8  |   74.48907    186.358     0.40   0.689    -290.7658     439.744
          9  |   170.0179    124.072     1.37   0.171    -73.15877    413.1946
         10  |   41.47286   76.92693     0.54   0.590    -109.3011    192.2469
         11  |   2341.826   902.4309     2.60   0.009     573.0937    4110.558
         12  |    1973.87   271.6291     7.27   0.000     1441.487    2506.253
         13  |   1105.509   227.2816     4.86   0.000     660.0453    1550.973
         14  |   516.2294   156.0572     3.31   0.001      210.363    822.0958
         15  |   2109.687   386.2907     5.46   0.000     1352.571    2866.803
         16  |   2355.273   223.2191    10.55   0.000     1917.771    2792.774
         17  |   344.3628   80.17913     4.29   0.000     187.2146     501.511
         18  |   158.2578   80.22678     1.97   0.049     1.016193    315.4994
         19  |   492.9816   243.9707     2.02   0.043     14.80775    971.1554
         20  |   1128.024   214.1953     5.27   0.000     708.2091    1547.839
         21  |   1356.563    346.635     3.91   0.000     677.1709    2035.955
         22  |   35.98037   68.14094     0.53   0.597    -97.57342    169.5342
         23  |  -206.7821   269.6775    -0.77   0.443    -735.3402    321.7761
         24  |   593.6877   134.3336     4.42   0.000     330.3988    856.9766
         25  |   589.4162   148.6462     3.97   0.000     298.0751    880.7573
         26  |   218.4909   140.0297     1.56   0.119    -55.96231    492.9442
         27  |  -97.59796   266.3339    -0.37   0.714    -619.6028    424.4069
         28  |   510.6548   161.1697     3.17   0.002     194.7679    826.5417
         29  |  -103.0191   146.3387    -0.70   0.481    -389.8377    183.7995
         30  |   1426.524   448.4019     3.18   0.001     547.6724    2305.376
         31  |   133.2479   167.0611     0.80   0.425    -194.1858    460.6817
         32  |   236.8201   65.26146     3.63   0.000       108.91    364.7302
             |
       _cons |  -106.3644     192.18    -0.55   0.580    -483.0302    270.3014
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.156
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               41.072
                         (Kleibergen-Paap rk Wald F statistic):         25.669
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_st
Included instruments: active_st cons_st pop_st pr_st tmp_st 2004.yr 2005.yr
                      2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr
                      2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id
                      4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id
                      11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id
                      17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id
                      23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id
                      29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: ins_st
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
.         // sum dpt_tot_prop_w1
. gen dpt_st_win = (dpt_tot_prop_w1 - 6680.299)/5753.619

.         // sum active_exp_w1 cons_exp_raw_w1
. gen act_st_win = (active_exp_w1-2.188262)/2.279328 

. gen cons_st_win = (cons_exp_raw_w1-1.977921)/0.6595049

. gen ins_st_win = act_st_win*cons_st_win

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_st_win=ins_st_win) act_st_win cons_st_win ib(first).yr ib(first).mx_id,
>  robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
---------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+-------------------------------------------------------------------
est3_dpt_s~n | ivreg2    dpt_st_win        51  First-stage regression: dpt_st_win
---------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_st_win:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
  dpt_st_win | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
  ins_st_win |   .2317833   .0460361     5.03   0.000     .1413002    .3222664
  act_st_win |  -.3245226   .1118245    -2.90   0.004    -.5443118   -.1047333
 cons_st_win |   .0438299   .2216741     0.20   0.843    -.3918668    .4795266
             |
          yr |
       2004  |   .0765709   .0992842     0.77   0.441    -.1185706    .2717123
       2005  |   .0340405   .1003053     0.34   0.734    -.1631079     .231189
       2006  |   .1548803   .0911316     1.70   0.090    -.0242375     .333998
       2007  |   .4618284   .0791148     5.84   0.000     .3063296    .6173272
       2008  |   .8157833   .0971562     8.40   0.000     .6248244    1.006742
       2009  |    1.04999   .1107602     9.48   0.000     .8322925    1.267687
       2010  |   1.369742   .1498533     9.14   0.000     1.075208    1.664276
       2011  |   1.723492   .1976591     8.72   0.000     1.334996    2.111987
       2012  |    1.73886   .2104299     8.26   0.000     1.325263    2.152456
       2013  |   1.422945   .2026511     7.02   0.000     1.024638    1.821253
       2014  |   1.081573   .1998443     5.41   0.000     .6887826    1.474364
       2015  |   .9120278   .1999554     4.56   0.000     .5190187    1.305037
       2016  |   .9973927   .2033141     4.91   0.000     .5977823    1.397003
       2017  |   .4274731   .2294368     1.86   0.063    -.0234811    .8784272
             |
       mx_id |
          2  |  -1.822622    .163805   -11.13   0.000    -2.144578   -1.500666
          3  |  -2.329837   .5588672    -4.17   0.000    -3.428281   -1.231393
          4  |  -2.323208   .5866612    -3.96   0.000    -3.476281   -1.170135
          5  |  -1.674984   .4371034    -3.83   0.000    -2.534103   -.8158643
          6  |  -2.082166   .5691812    -3.66   0.000    -3.200882   -.9634496
          7  |  -1.978173   .3552743    -5.57   0.000    -2.676458   -1.279887
          8  |  -1.224129   .3554427    -3.44   0.001    -1.922746   -.5255127
          9  |  -1.419739   .1371065   -10.36   0.000    -1.689219   -1.150258
         10  |  -.0145641   .2026097    -0.07   0.943      -.41279    .3836618
         11  |  -1.079934   .1583925    -6.82   0.000    -1.391252   -.7686167
         12  |   1.086021    .329248     3.30   0.001       .43889    1.733153
         13  |  -1.261618   .3544247    -3.56   0.000    -1.958233   -.5650018
         14  |  -1.177538   .2529369    -4.66   0.000    -1.674681   -.6803943
         15  |   -.680789   .1170257    -5.82   0.000     -.910801    -.450777
         16  |  -.2640169   .2490152    -1.06   0.290    -.7534521    .2254183
         17  |  -.4863236    .127818    -3.80   0.000    -.7375477   -.2350995
         18  |  -.3384069   .1840475    -1.84   0.067    -.7001493    .0233355
         19  |  -1.155011   .1395228    -8.28   0.000     -1.42924   -.8807809
         20  |  -.9260882   .2558153    -3.62   0.000    -1.428889   -.4232875
         21  |  -1.558001    .327647    -4.76   0.000    -2.201986   -.9140167
         22  |   .2817486    .184665     1.53   0.128    -.0812073    .6447045
         23  |  -2.184225   .6195515    -3.53   0.000    -3.401943   -.9665071
         24  |   .2589585   .3145704     0.82   0.411    -.3593244    .8772414
         25  |  -1.394007   .1492607    -9.34   0.000    -1.687377   -1.100638
         26  |  -1.144576   .2221796    -5.15   0.000    -1.581266   -.7078851
         27  |  -2.102989   .5592786    -3.76   0.000    -3.202242   -1.003736
         28  |  -1.057807   .1143457    -9.25   0.000    -1.282551   -.8330622
         29  |  -1.674364   .3201261    -5.23   0.000    -2.303567   -1.045162
         30  |  -1.151021   .3136197    -3.67   0.000    -1.767435   -.5346067
         31  |  -1.867251   .2157319    -8.66   0.000    -2.291269   -1.443234
         32  |   .0428212   .1906826     0.22   0.822    -.3319623    .4176047
             |
       _cons |   .2250354   .2159322     1.04   0.298    -.1993757    .6494465
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_st_win   |      25.35    0.0000 |       28.23   0.0000 |       25.35

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.84    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      38.01
Kleibergen-Paap Wald rk F statistic                                25.35

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.04     P-val=0.0144
Anderson-Rubin Wald test           Chi-sq(1)=      6.73     P-val=0.0095
Stock-Wright LM S statistic        Chi-sq(1)=      7.70     P-val=0.0055

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   160.86
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9553
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9803
Residual SS             =  8063792.753                Root MSE      =    129.6

------------------------------------------------------------------------------
             |               Robust
      rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
  dpt_st_win |    134.753   53.40902     2.52   0.012     30.07325    239.4328
  act_st_win |  -27.67177   18.89522    -1.46   0.143    -64.70572    9.362187
 cons_st_win |  -133.5547   88.13263    -1.52   0.130    -306.2915    39.18206
             |
          yr |
       2004  |   116.6623   34.58346     3.37   0.001     48.87992    184.4446
       2005  |   227.0768    34.2115     6.64   0.000     160.0235    294.1302
       2006  |   331.9985   41.46352     8.01   0.000     250.7315    413.2655
       2007  |   306.0108    47.8531     6.39   0.000     212.2204    399.8011
       2008  |   170.1352   59.21888     2.87   0.004     54.06838    286.2021
       2009  |   30.72897   64.78599     0.47   0.635    -96.24924    157.7072
       2010  |      50.99   61.38214     0.83   0.406    -69.31679    171.2968
       2011  |   80.48504   71.59176     1.12   0.261    -59.83223    220.8023
       2012  |   84.76993   69.99087     1.21   0.226    -52.40966    221.9495
       2013  |   128.2083    58.5876     2.19   0.029      13.3787    243.0379
       2014  |   216.2259   49.95952     4.33   0.000      118.307    314.1447
       2015  |   274.2695   43.59511     6.29   0.000     188.8247    359.7144
       2016  |   304.1561   49.35966     6.16   0.000     207.4129    400.8992
       2017  |  -.5697425   57.78139    -0.01   0.992    -113.8192    112.6797
             |
       mx_id |
          2  |   285.2412   121.9809     2.34   0.019     46.16304    524.3194
          3  |  -325.8155   234.5618    -1.39   0.165    -785.5481    133.9171
          4  |  -337.2788   239.6959    -1.41   0.159    -807.0741    132.5165
          5  |   250.5044   182.1199     1.38   0.169    -106.4441    607.4529
          6  |   37.45881   229.7628     0.16   0.870     -412.868    487.7856
          7  |   861.8722   167.2592     5.15   0.000     534.0503    1189.694
          8  |  -99.63741   144.0131    -0.69   0.489    -381.8979    182.6231
          9  |   94.90617   90.79247     1.05   0.296     -83.0438    272.8561
         10  |   12.24034   67.94227     0.18   0.857    -120.9241    145.4047
         11  |    1357.92   101.4936    13.38   0.000     1158.996    1556.844
         12  |   1656.181    111.055    14.91   0.000     1438.518    1873.845
         13  |   842.2324   148.0972     5.69   0.000     551.9672    1132.498
         14  |   448.9505     112.01     4.01   0.000      229.415     668.486
         15  |   1617.144   71.15833    22.73   0.000     1477.676    1756.612
         16  |   2051.193   94.76226    21.65   0.000     1865.462    2236.923
         17  |   243.4402   44.64464     5.45   0.000     155.9383    330.9421
         18  |   127.4001   59.36614     2.15   0.032      11.0446    243.7556
         19  |   169.5783   82.13252     2.06   0.039     8.601543    330.5551
         20  |    889.344   111.8551     7.95   0.000      670.112    1108.576
         21  |   1010.957   153.6979     6.58   0.000     709.7143    1312.199
         22  |   29.20557   45.69946     0.64   0.523    -60.36372    118.7749
         23  |  -352.4198   250.4646    -1.41   0.159    -843.3214    138.4818
         24  |    464.261   106.8964     4.34   0.000      254.748    673.7741
         25  |   378.2954   86.84125     4.36   0.000     208.0897    548.5011
         26  |   40.39396   90.03336     0.45   0.654    -136.0682    216.8561
         27  |  -281.4458   229.9243    -1.22   0.221    -732.0891    169.1975
         28  |   283.5877   70.25725     4.04   0.000      145.886    421.2894
         29  |  -47.75612   143.7097    -0.33   0.740     -329.422    233.9098
         30  |    877.032   142.4534     6.16   0.000     597.8284    1156.236
         31  |  -53.31466   127.7502    -0.42   0.676    -303.7005    197.0712
         32  |   222.4043   59.74402     3.72   0.000     105.3082    339.5004
             |
       _cons |    138.036   85.52082     1.61   0.107     -29.5817    305.6538
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.839
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               38.006
                         (Kleibergen-Paap rk Wald F statistic):         25.349
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_st_win
Included instruments: act_st_win cons_st_win 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: ins_st_win
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_st_win=ins_st_win) act_st_win cons_st_win pop_st pr_st tmp_st ib(first)
> .yr ib(first).mx_id, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
---------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+-------------------------------------------------------------------
est4_dpt_s~n | ivreg2    dpt_st_win        54  First-stage regression: dpt_st_win
---------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_st_win:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
  dpt_st_win | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
  ins_st_win |    .234588   .0458285     5.12   0.000     .1445109     .324665
  act_st_win |  -.3384934   .1133877    -2.99   0.003    -.5613594   -.1156273
 cons_st_win |   .0819784   .2185278     0.38   0.708    -.3475428    .5114995
      pop_st |   .4765701   .2404094     1.98   0.048     .0040401    .9491002
       pr_st |   .0651905   .0416015     1.57   0.118    -.0165781    .1469591
      tmp_st |  -.3700473   .1802197    -2.05   0.041    -.7242731   -.0158215
             |
          yr |
       2004  |    .071214   .1041388     0.68   0.494    -.1334731    .2759011
       2005  |     .08432    .108042     0.78   0.436    -.1280389     .296679
       2006  |   .1981621   .1045692     1.90   0.059    -.0073711    .4036952
       2007  |   .4880152   .0939705     5.19   0.000     .3033142    .6727163
       2008  |   .8312126   .1124409     7.39   0.000     .6102075    1.052218
       2009  |   1.115355   .1326403     8.41   0.000     .8546472    1.376062
       2010  |   1.358129   .1573446     8.63   0.000     1.048865    1.667393
       2011  |     1.7823   .2043644     8.72   0.000     1.380617    2.183983
       2012  |   1.777147   .2177534     8.16   0.000     1.349148    2.205146
       2013  |   1.420361   .2060445     6.89   0.000     1.015376    1.825346
       2014  |   1.075397   .2030027     5.30   0.000     .6763912    1.474404
       2015  |   .9291063   .2047033     4.54   0.000     .5267575    1.331455
       2016  |   1.025666   .2070939     4.95   0.000     .6186182    1.432714
       2017  |  -.3484887    .532484    -0.65   0.513    -1.395098    .6981203
             |
       mx_id |
          2  |  -2.097833    .234275    -8.95   0.000    -2.558305    -1.63736
          3  |  -1.742849   .5975776    -2.92   0.004    -2.917401   -.5682972
          4  |   -1.63093   .6703286    -2.43   0.015    -2.948476   -.3133844
          5  |  -1.855389   .6003451    -3.09   0.002    -3.035381   -.6753975
          6  |  -2.461706   .6331009    -3.89   0.000     -3.70608   -1.217332
          7  |  -3.696179   .8540488    -4.33   0.000    -5.374831   -2.017527
          8  |  -1.204334   .4057828    -2.97   0.003    -2.001909   -.4067585
          9  |  -.7386791   .3563623    -2.07   0.039    -1.439117   -.0382411
         10  |  -.1093989   .2078182    -0.53   0.599    -.5178702    .2990725
         11  |  -3.571138   1.191961    -3.00   0.003    -5.913964   -1.228313
         12  |   .3972697    .468333     0.85   0.397    -.5232492    1.317789
         13  |  -1.119567   .4694155    -2.39   0.018    -2.042213   -.1969202
         14  |  -1.546801   .3071994    -5.04   0.000    -2.150608   -.9429938
         15  |   -1.50849   .4947804    -3.05   0.002    -2.480991   -.5359877
         16  |   -.512887   .3504048    -1.46   0.144    -1.201615    .1758414
         17  |  -.2942462    .211072    -1.39   0.164     -.709113    .1206205
         18  |  -.0975627   .2436211    -0.40   0.689    -.5764054    .3812799
         19  |  -1.437432   .3390465    -4.24   0.000    -2.103835   -.7710281
         20  |  -1.095463   .3720706    -2.94   0.003    -1.826776   -.3641503
         21  |  -2.232139   .5307037    -4.21   0.000    -3.275249   -1.189029
         22  |  -.0137211   .2082125    -0.07   0.947    -.4229673    .3955251
         23  |  -1.550571   .7064692    -2.19   0.029    -2.939152   -.1619904
         24  |    .130934   .3230587     0.41   0.685    -.5040451     .765913
         25  |  -1.177089   .2886049    -4.08   0.000    -1.744349   -.6098302
         26  |  -1.039771   .2902013    -3.58   0.000    -1.610168   -.4693743
         27  |  -1.685961   .6659061    -2.53   0.012    -2.994814   -.3771081
         28  |  -1.028752   .2627006    -3.92   0.000    -1.545096   -.5124082
         29  |  -1.820883   .3320915    -5.48   0.000    -2.473616    -1.16815
         30  |   -1.80768   .6631864    -2.73   0.007    -3.111187    -.504172
         31  |  -1.337842   .4096322    -3.27   0.001    -2.142983   -.5327008
         32  |  -.0460826   .1921822    -0.24   0.811    -.4238211    .3316558
             |
       _cons |   .4185281   .3105452     1.35   0.178    -.1918553    1.028911
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_st_win   |      26.20    0.0000 |       29.39   0.0000 |       26.20

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.32    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.53
Kleibergen-Paap Wald rk F statistic                                26.20

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       6.04     P-val=0.0144
Anderson-Rubin Wald test           Chi-sq(1)=      6.77     P-val=0.0092
Stock-Wright LM S statistic        Chi-sq(1)=      8.34     P-val=0.0039

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   162.07
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9566
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9809
Residual SS             =  7826574.338                Root MSE      =    127.7

------------------------------------------------------------------------------
             |               Robust
      rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
  dpt_st_win |   128.8926   51.04656     2.53   0.012     28.84315     228.942
  act_st_win |  -22.34065   17.77479    -1.26   0.209     -57.1786    12.49729
 cons_st_win |    -111.59   87.35636    -1.28   0.201    -282.8054    59.62528
      pop_st |  -219.7756   183.3048    -1.20   0.231    -579.0463    139.4952
       pr_st |   20.78469   16.58297     1.25   0.210    -11.71734    53.28671
      tmp_st |  -85.11759   60.86684    -1.40   0.162    -204.4144    34.17922
             |
          yr |
       2004  |   120.6614   37.89505     3.18   0.001     46.38841    194.9343
       2005  |   249.8385   37.79929     6.61   0.000     175.7532    323.9237
       2006  |    361.098    44.6345     8.09   0.000     273.6159      448.58
       2007  |   339.3101   50.12054     6.77   0.000     241.0756    437.5445
       2008  |   214.4897   60.64421     3.54   0.000     95.62929    333.3502
       2009  |   94.12863   69.26106     1.36   0.174    -41.62056    229.8778
       2010  |   92.96918   63.11543     1.47   0.141     -30.7348    216.6732
       2011  |   142.3275   76.79176     1.85   0.064     -8.18159    292.8366
       2012  |   144.4301    75.1106     1.92   0.054    -2.783951    291.6442
       2013  |   178.9084   63.11258     2.83   0.005     55.21002    302.6068
       2014  |     268.94   57.30908     4.69   0.000     156.6163    381.2637
       2015  |   336.9571   54.24175     6.21   0.000     230.6452     443.269
       2016  |   377.0447   60.70457     6.21   0.000     258.0659    496.0234
       2017  |  -104.1309   162.5219    -0.64   0.522     -422.668    214.4061
             |
       mx_id |
          2  |   440.3744   182.7101     2.41   0.016     82.26918    798.4797
          3  |  -225.9979   230.1255    -0.98   0.326    -677.0355    225.0398
          4  |  -199.2989    247.109    -0.81   0.420    -683.6236    285.0259
          5  |   614.3904    318.165     1.93   0.053    -9.201526    1237.982
          6  |   228.6539    284.947     0.80   0.422    -329.8321    787.1398
          7  |   1334.352   541.7927     2.46   0.014     272.4579    2396.246
          8  |   97.13215   185.2918     0.52   0.600    -266.0332    460.2974
          9  |   172.1418   125.5255     1.37   0.170    -73.88352    418.1672
         10  |   49.37068   76.48123     0.65   0.519    -100.5298    199.2711
         11  |   2341.034   905.2043     2.59   0.010     566.8658    4115.201
         12  |    1966.04    270.926     7.26   0.000     1435.034    2497.045
         13  |   1126.617   226.6975     4.97   0.000      682.298    1570.936
         14  |   534.0685   157.1514     3.40   0.001     226.0575    842.0795
         15  |   2105.667   387.1585     5.44   0.000      1346.85    2864.484
         16  |   2326.006    219.233    10.61   0.000     1896.317    2755.694
         17  |   347.7256   80.51255     4.32   0.000     189.9239    505.5273
         18  |    152.394   80.38487     1.90   0.058    -5.157461    309.9454
         19  |   499.0185    245.158     2.04   0.042     18.51766    979.5194
         20  |   1142.003   214.6522     5.32   0.000     721.2925    1562.714
         21  |   1376.757   348.3351     3.95   0.000     694.0326    2059.481
         22  |   35.23014     68.725     0.51   0.608     -99.4684    169.9287
         23  |  -165.5846   265.1874    -0.62   0.532    -685.3424    354.1731
         24  |   574.4935   132.5185     4.34   0.000     314.7619     834.225
         25  |   590.3732   150.0678     3.93   0.000     296.2457    884.5007
         26  |   230.5407   140.5888     1.64   0.101    -45.00832    506.0897
         27  |  -62.00578   263.8447    -0.24   0.814    -579.1319    455.1204
         28  |   514.5092   162.0982     3.17   0.002     196.8025    832.2158
         29  |  -77.95143   147.1727    -0.53   0.596    -366.4045    210.5017
         30  |   1439.483   449.7579     3.20   0.001     557.9737    2320.992
         31  |   149.7176   168.2062     0.89   0.373    -179.9604    479.3957
         32  |   243.3216   65.00267     3.74   0.000     115.9187    370.7245
             |
       _cons |   -118.347    192.245    -0.62   0.538    -495.1403    258.4464
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.324
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.529
                         (Kleibergen-Paap rk Wald F statistic):         26.202
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_st_win
Included instruments: act_st_win cons_st_win pop_st pr_st tmp_st 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: ins_st_win
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize and notes font size to \scriptsize. Next, move final eight line
> s of first table to end of second table. Delete \midrule between the tables. Penultimately, consolidat
> e notes by moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, 
> which should sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleiberge
> n-Paap F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_st.tex", replace refcat(dpt_st "\emph{Second Stage}", nolab
> el) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_st "\hspace{0.5cm} Deportat
> ions" active_st "\hspace{0.5cm} Policy" cons_st "\hspace{0.5cm} Partisanship" pop_st "\hspace{0.5cm} P
> opulation (mil.)" pr_st "\hspace{0.5cm} Precipitation (mm)" tmp_st "\hspace{0.5cm} Temperature (ºC)" _
> cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2}" "\textit{3}" "\textit{4}") m
> groups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0) prefix(\multicolumn{@sp
> an}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deportations on Mexican States' 
> Annual \newline Remittance Inflows (USD mil.)) rename(dpt_st_win dpt_st ins_st_win ins_st act_st_win a
> ctive_st cons_st_win cons_st) stats(N F Fp widstat, fmt(0 3 3 3) label(Observations \(F\) Prob\(>\)F K
> leibergen-Paap\(F\)statistic)) addnote("IV regression. Robust standard errors in parentheses. All mode
> ls contain state and year fixed effects.") collabels(none) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_st.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_st.tex)

. /* Append first stage results */ 
. esttab est1_dpt_st est2_dpt_st est3_dpt_st_win est4_dpt_st_win using "$data/iv_st.tex", append refcat(
> ins_st "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) nomtitl
> e varlabels(ins_st "\hspace{0.5cm} Policy $\times$ Partisanship" active_st "\hspace{0.5cm} Policy" con
> s_st "\hspace{0.5cm} Partisanship" pop_st "\hspace{0.5cm} Population (mil.)" pr_st "\hspace{0.5cm} Pre
> cipitation (mm)" tmp_st "\hspace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber re
> name(dpt_st_win dpt_st ins_st_win ins_st act_st_win active_st cons_st_win cons_st) collabels(none) noo
> bs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_st.tex)

. 
. 
. 
. /***** Regression analysis with clustered standard errors *****/
. /* Raw data */
. // Clear storage
. eststo clear

. // Without control variables
. eststo: xi: reg rem dpt_tot_prop ib(first).yr ib(first).mx_id, cluster(mx_id)

Linear regression                               Number of obs     =        480
                                                F(14, 31)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.9580
                                                Root MSE          =     132.51

                                 (Std. err. adjusted for 32 clusters in mx_id)
------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0059668   .0035278     1.69   0.101    -.0012282    .0131617
             |
          yr |
       2004  |   98.21151   19.93489     4.93   0.000     57.55403     138.869
       2005  |   204.5722   33.06505     6.19   0.000     137.1355    272.0088
       2006  |   321.6196   50.01596     6.43   0.000     219.6113    423.6278
       2007  |   326.4564   52.62867     6.20   0.000     219.1195    433.7933
       2008  |   283.5606   49.34687     5.75   0.000      182.917    384.2042
       2009  |   157.3204   33.93515     4.64   0.000     88.10924    226.5316
       2010  |   155.3593   34.00022     4.57   0.000     86.01539    224.7032
       2011  |   193.6739   41.34225     4.68   0.000     109.3558     277.992
       2012  |   183.1831   37.79131     4.85   0.000     106.1073     260.259
       2013  |   191.1978   34.63058     5.52   0.000     120.5683    261.8274
       2014  |   244.9339   37.71536     6.49   0.000      168.013    321.8549
       2015  |   286.3011   42.68544     6.71   0.000     199.2435    373.3586
       2016  |   355.1739   53.59527     6.63   0.000     245.8656    464.4822
       2017  |  -13.77816   26.25302    -0.52   0.603    -67.32156    39.76523
             |
       mx_id |
          2  |   150.3939   38.72198     3.88   0.001     71.41987    229.3679
          3  |  -211.9182   42.31663    -5.01   0.000    -298.2236   -125.6129
          4  |  -192.1405   39.48028    -4.87   0.000     -272.661   -111.6199
          5  |   352.9232   30.57335    11.54   0.000     290.5685     415.278
          6  |   195.7231   35.34565     5.54   0.000     123.6352    267.8111
          7  |   870.0564   38.52751    22.58   0.000     791.4791    948.6338
          8  |  -3.751051   21.97419    -0.17   0.866     -48.5677     41.0656
          9  |   -89.5503   29.81084    -3.00   0.005    -150.3499   -28.75069
         10  |    101.973   .2888199   353.07   0.000      101.384    102.5621
         11  |   1325.757   21.65816    61.21   0.000     1281.585    1369.929
         12  |   1662.861    25.4739    65.28   0.000     1610.907    1714.816
         13  |   930.5275   23.48487    39.62   0.000     882.6298    978.4252
         14  |   478.1214   22.62631    21.13   0.000     431.9747    524.2681
         15  |    1534.85   14.53386   105.61   0.000     1505.208    1564.492
         16  |   1933.182   4.563619   423.61   0.000     1923.874     1942.49
         17  |   224.5632   10.04731    22.35   0.000     204.0716    245.0548
         18  |   27.16779   6.878209     3.95   0.000     13.13959    41.19599
         19  |    114.325   22.55806     5.07   0.000     68.31752    160.3325
         20  |   941.5241   18.24727    51.60   0.000     904.3085    978.7396
         21  |    1044.86   30.74178    33.99   0.000     982.1618    1107.558
         22  |   70.64682   5.975052    11.82   0.000     58.46062    82.83302
         23  |  -165.7562   36.09736    -4.59   0.000    -239.3773   -92.13518
         24  |   348.0635   7.820475    44.51   0.000     332.1135    364.0135
         25  |   205.0853   28.77916     7.13   0.000     146.3898    263.7808
         26  |   17.66694   22.94708     0.77   0.447    -29.13395    64.46782
         27  |  -129.1383   35.98151    -3.59   0.001    -202.5231   -55.75354
         28  |    209.752    20.7996    10.08   0.000      167.331    252.1731
         29  |  -31.09481   32.53589    -0.96   0.347     -97.4522    35.26258
         30  |   951.1029   21.04969    45.18   0.000     908.1718     994.034
         31  |  -139.1456   39.10675    -3.56   0.001    -218.9044   -59.38686
         32  |    302.909   1.414471   214.15   0.000     300.0242    305.7938
             |
       _cons |   45.42404   46.36011     0.98   0.335    -49.12803    139.9761
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: reg rem dpt_tot_prop pop ann_pr_mx avg_tmp_mx ib(first).yr ib(first).mx_id, cluster(mx_id)

Linear regression                               Number of obs     =        480
                                                F(17, 31)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.9593
                                                Root MSE          =     130.93

                                 (Std. err. adjusted for 32 clusters in mx_id)
------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0051107   .0036887     1.39   0.176    -.0024125    .0126339
         pop |  -61.03971   89.98971    -0.68   0.503    -244.5749    122.4955
   ann_pr_mx |   .0572696   .0367031     1.56   0.129    -.0175868     .132126
  avg_tmp_mx |  -28.46022   14.56174    -1.95   0.060    -58.15907    1.238639
             |
          yr |
       2004  |   106.5076   21.87747     4.87   0.000     61.88817     151.127
       2005  |   238.2935   37.26072     6.40   0.000     162.2997    314.2872
       2006  |   361.1137   55.46734     6.51   0.000     247.9874    474.2401
       2007  |   368.1884   61.10452     6.03   0.000     243.5649    492.8119
       2008  |   325.0078   59.83212     5.43   0.000     202.9793    447.0362
       2009  |    224.394   47.17115     4.76   0.000     128.1878    320.6002
       2010  |   196.2117    49.7377     3.94   0.000     94.77103    297.6525
       2011  |   264.2685   54.46401     4.85   0.000     153.1885    375.3486
       2012  |   251.8092   53.05603     4.75   0.000     143.6007    360.0177
       2013  |   246.8171   50.67393     4.87   0.000     143.4669    350.1672
       2014  |   302.6759   53.04678     5.71   0.000     194.4863    410.8656
       2015  |   357.0586   58.80407     6.07   0.000     237.1269    476.9903
       2016  |   431.1962   66.96345     6.44   0.000     294.6233     567.769
       2017  |   -203.312   157.0043    -1.29   0.205    -523.5244    116.9004
             |
       mx_id |
          2  |   274.0923     179.09     1.53   0.136     -91.1641    639.3487
          3  |  -108.6058   112.2578    -0.97   0.341    -337.5572    120.3456
          4  |  -42.05665   143.6619    -0.29   0.772    -335.0571    250.9438
          5  |   663.5001   362.9214     1.83   0.077    -76.68301    1403.683
          6  |   291.8926    204.381     1.43   0.163    -124.9452    708.7304
          7  |   1146.147   712.3249     1.61   0.118    -306.6497    2598.943
          8  |   163.9803   145.9101     1.12   0.270    -133.6052    461.5658
          9  |   69.72837   141.2825     0.49   0.625    -218.4191    357.8758
         10  |   113.3202   41.71925     2.72   0.011     28.23326    198.4072
         11  |   2076.133   1265.835     1.64   0.111    -505.5535    4657.819
         12  |   1933.895     379.27     5.10   0.000     1160.369    2707.422
         13  |   1201.628    222.607     5.40   0.000     747.6178    1655.638
         14  |   501.8219   138.8957     3.61   0.001     218.5422    785.1017
         15  |   1959.599   559.4351     3.50   0.001     818.6238    3100.575
         16  |   2215.115   288.7917     7.67   0.000      1626.12    2804.109
         17  |   347.0424   86.10096     4.03   0.000     171.4383    522.6465
         18  |   91.01994   63.42022     1.44   0.161    -38.32645    220.3663
         19  |   417.8798   322.8249     1.29   0.205    -240.5258    1076.285
         20  |   1159.073   253.6667     4.57   0.000     641.7167     1676.43
         21  |   1319.963   429.9799     3.07   0.004     443.0131    2196.913
         22  |   43.52354   72.74858     0.60   0.554    -104.8482    191.8952
         23  |   23.87834   148.0161     0.16   0.873    -278.0025    325.7592
         24  |   479.8005    126.667     3.79   0.001     221.4614    738.1396
         25  |   455.4464   179.2733     2.54   0.016     89.81606    821.0767
         26  |   209.6195   142.6716     1.47   0.152    -81.36115    500.6002
         27  |   78.41843   188.0616     0.42   0.680    -305.1358    461.9727
         28  |   448.2698   203.1334     2.21   0.035     33.97663    862.5631
         29  |  -111.0731   33.83284    -3.28   0.003    -180.0756   -42.07057
         30  |   1433.294   600.3612     2.39   0.023     208.8489    2657.738
         31  |   107.0181     170.81     0.63   0.536    -241.3512    455.3874
         32  |   300.9281   28.56409    10.54   0.000     242.6712    359.1849
             |
       _cons |   561.2931   252.0644     2.23   0.033     47.20438    1075.382
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. // Without control variables
. eststo: xi: reg rem_w1 dpt_tot_prop_w1 ib(first).yr ib(first).mx_id, cluster(mx_id)

Linear regression                               Number of obs     =        480
                                                F(14, 31)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.9584
                                                Root MSE          =     131.53

                                    (Std. err. adjusted for 32 clusters in mx_id)
---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0061484   .0036981     1.66   0.106     -.001394    .0136908
                |
             yr |
          2004  |   98.19957   19.89766     4.94   0.000     57.61802    138.7811
          2005  |   204.3876   33.10557     6.17   0.000     136.8683    271.9068
          2006  |    321.318   50.02145     6.42   0.000     219.2985    423.3374
          2007  |    325.834   52.61283     6.19   0.000     218.5294    433.1386
          2008  |   282.5017   49.38564     5.72   0.000      181.779    383.2244
          2009  |   156.0703   34.34252     4.54   0.000     86.02829    226.1124
          2010  |   154.0518   34.45927     4.47   0.000     83.77167     224.332
          2011  |    193.079   41.48093     4.65   0.000     108.4781    277.6799
          2012  |   182.3285   38.08079     4.79   0.000     104.6622    259.9948
          2013  |   190.0311   35.06264     5.42   0.000     118.5204    261.5418
          2014  |    244.124   37.76209     6.46   0.000     167.1077    321.1403
          2015  |   285.3186   42.48886     6.72   0.000      198.662    371.9752
          2016  |   347.5172   51.10065     6.80   0.000     243.2967    451.7377
          2017  |  -13.84577    26.2134    -0.53   0.601    -67.30836    39.61681
                |
          mx_id |
             2  |   152.3875   40.59165     3.75   0.001     69.60029    235.1747
             3  |  -209.0069   44.31321    -4.72   0.000    -299.3843   -118.6295
             4  |  -190.1078   41.38657    -4.59   0.000    -274.5162   -105.6993
             5  |   354.4973   32.04958    11.06   0.000     289.1318    419.8629
             6  |   197.5429    37.0523     5.33   0.000     121.9743    273.1116
             7  |   872.0401   40.38779    21.59   0.000     789.6686    954.4115
             8  |  -2.619682    23.0352    -0.11   0.910    -49.60029    44.36092
             9  |  -88.01545   31.25025    -2.82   0.008    -151.7507   -24.28015
            10  |   101.9582   .3027655   336.76   0.000     101.3407    102.5757
            11  |   1326.872   22.70392    58.44   0.000     1280.568    1373.177
            12  |   1665.085   24.57733    67.75   0.000     1614.959    1715.211
            13  |   931.7366   24.61883    37.85   0.000     881.5262    981.9471
            14  |   479.2864   23.71881    20.21   0.000     430.9115    527.6612
            15  |   1535.599   15.23562   100.79   0.000     1504.525    1566.672
            16  |   1917.696   4.783972   400.86   0.000     1907.939    1927.453
            17  |   225.0805   10.53244    21.37   0.000     203.5995    246.5616
            18  |   27.52193   7.210321     3.82   0.001     12.81638    42.22747
            19  |   115.4864   23.64727     4.88   0.000      67.2575    163.7153
            20  |   942.4636   19.12833    49.27   0.000     903.4511    981.4761
            21  |   1046.443   32.22613    32.47   0.000     980.7172    1112.168
            22  |   70.33919   6.263555    11.23   0.000     57.56458     83.1138
            23  |  -163.8977   37.84031    -4.33   0.000    -241.0735    -86.7219
            24  |   347.6608   8.198084    42.41   0.000     330.9407    364.3809
            25  |    206.567   30.16875     6.85   0.000     145.0375    268.0966
            26  |    18.8484   24.05508     0.78   0.439    -30.21225    67.90905
            27  |  -127.2858   37.71886    -3.37   0.002    -204.2139   -50.35763
            28  |   210.8229    21.8039     9.67   0.000     166.3536    255.2923
            29  |  -29.41966   34.10688    -0.86   0.395    -98.98109    40.14178
            30  |   952.1867   22.06607    43.15   0.000     907.1826    997.1907
            31  |  -137.1321   40.99501    -3.35   0.002     -220.742   -53.52228
            32  |   302.8362   1.482768   204.24   0.000     299.8121    305.8603
                |
          _cons |   44.28888   47.87997     0.92   0.362    -53.36295    141.9407
---------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: reg rem_w1 dpt_tot_prop_w1 pop ann_pr_mx avg_tmp_mx ib(first).yr ib(first).mx_id, cluster(
> mx_id)

Linear regression                               Number of obs     =        480
                                                F(17, 31)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.9597
                                                Root MSE          =     129.93

                                    (Std. err. adjusted for 32 clusters in mx_id)
---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0051908   .0038172     1.36   0.184    -.0025944     .012976
            pop |  -60.77307   89.79524    -0.68   0.504    -243.9117    122.3655
      ann_pr_mx |   .0583159   .0364663     1.60   0.120    -.0160576    .1326895
     avg_tmp_mx |  -28.34499   14.51159    -1.95   0.060    -57.94158    1.251604
                |
             yr |
          2004  |   106.8524   22.12333     4.83   0.000     61.73153    151.9732
          2005  |   238.5764      37.52     6.36   0.000     162.0538    315.0989
          2006  |   361.4235   55.62959     6.50   0.000     247.9663    474.8808
          2007  |   368.3493   61.26929     6.01   0.000     243.3898    493.3089
          2008  |   324.9344   60.09709     5.41   0.000     202.3656    447.5032
          2009  |   224.3235   47.55254     4.72   0.000     127.3394    321.3075
          2010  |   196.0006   50.19681     3.90   0.000     93.62357    298.3777
          2011  |   264.7995   54.67816     4.84   0.000     153.2827    376.3164
          2012  |   252.1207   53.32879     4.73   0.000     143.3559    360.8855
          2013  |   246.5703   50.93884     4.84   0.000     142.6798    350.4607
          2014  |   302.5751   53.06911     5.70   0.000     194.3399    410.8103
          2015  |   356.7201   58.66601     6.08   0.000       237.07    476.3703
          2016  |   424.1474   64.81536     6.54   0.000     291.9556    556.3392
          2017  |  -201.2553   157.0328    -1.28   0.209    -521.5259    119.0152
                |
          mx_id |
             2  |   274.8207   178.9922     1.54   0.135    -90.23626    639.8777
             3  |  -106.8982   112.8694    -0.95   0.351    -337.0969    123.3004
             4  |  -42.63036   144.6831    -0.29   0.770    -337.7135    252.4528
             5  |   661.2146   362.1526     1.83   0.078    -77.40056     1399.83
             6  |   292.3941   204.2152     1.43   0.162    -124.1055    708.8937
             7  |   1145.092   711.1446     1.61   0.117    -305.2966    2595.481
             8  |   163.9475   145.5906     1.13   0.269    -132.9864    460.8815
             9  |    69.2769   141.8895     0.49   0.629    -220.1085    358.6624
            10  |   113.1801   41.65024     2.72   0.011     28.23389    198.1263
            11  |   2072.595   1263.241     1.64   0.111    -503.8022    4648.992
            12  |   1935.041   378.5572     5.11   0.000     1162.968    2707.113
            13  |   1200.504   222.0598     5.41   0.000     747.6101    1653.398
            14  |   501.9941   138.7924     3.62   0.001     218.9252    785.0631
            15  |   1957.678   558.0844     3.51   0.001     819.4569    3095.898
            16  |   2197.938   287.9323     7.63   0.000     1610.696     2785.18
            17  |   346.2695   86.00966     4.03   0.000     170.8517    521.6874
            18  |   90.12117   63.71252     1.41   0.167    -39.82137    220.0637
            19  |     417.04   321.9972     1.30   0.205    -239.6776    1073.758
            20  |   1157.657   253.0729     4.57   0.000     641.5119    1673.803
            21  |   1318.676   429.1004     3.07   0.004     443.5197    2193.832
            22  |   43.13634    72.6533     0.59   0.557    -105.0411    191.3137
            23  |   22.93021   148.7677     0.15   0.879    -280.4835    326.3439
            24  |   478.9083   126.2592     3.79   0.001     221.4009    736.4157
            25  |   454.7905    178.958     2.54   0.016      89.8033    819.7777
            26  |   209.5118   142.3318     1.47   0.151    -80.77589    499.7995
            27  |   76.62413   188.5172     0.41   0.687    -307.8592    461.1075
            28  |   447.4409   202.6085     2.21   0.035     34.21826    860.6636
            29  |  -110.5402   34.76451    -3.18   0.003    -181.4428   -39.63746
            30  |   1430.185   598.8154     2.39   0.023     208.8933    2651.477
            31  |   106.1158   171.1874     0.62   0.540    -243.0232    455.2548
            32  |   300.9169   28.55873    10.54   0.000      242.671    359.1628
                |
          _cons |   557.7225   250.9362     2.22   0.034     45.93472     1069.51
---------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately. After, 
> add \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. Fin
> ally, moves notes from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which should
>  sit between \end{tabular} and \end{threeparttable}. Set notes in \footnotesize */
. esttab est1 est2 est3 est4 using "$data/ols_clst.tex", replace b(3) se(3) drop(*yr *mx_id) star(* 0.1 
> ** 0.05 *** 0.01) label nonumber mtitle("\textit{1}" "\textit{2}" "\textit{3}" "\textit{4}") mgroups("
> \textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0) prefix(\multicolumn{@span}{c}{)
> suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deportations on Mexican States' Annual \
> newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 dpt_tot_prop) stats(N F p r2, fmt(0 3 3 
> 3) label(Observations \(F\) Prob\(>\)F \(R\)$^{2}$ )) addnote("OLS regression. Clustered standard erro
> rs in parentheses. All models contain state and year fixed effects.") collabels(none) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/ols_clst.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/ols_clst.tex)

. 
. /*** Instrumental variable regression with clustered standard errors as well as state and year fixed e
> ffects. Cluster by state. Use the first state and year as the reference category. ***/
. /* Raw data */
. // Clear storage
. eststo clear

. // Without control variables
. tsset mx_id yr

Panel variable: mx_id (strongly balanced)
 Time variable: yr, 2003 to 2017
         Delta: 1 unit

. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw ib(first).yr ib(first).mx_id
> , cluster(mx_id) first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity and clustering on mx_id
Number of obs =                    480
Number of clusters (mx_id) =        32
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   932.7882   222.8932     4.18   0.000     494.6954    1370.881
  active_exp |  -2713.358   800.6767    -3.39   0.001    -4287.075   -1139.641
cons_exp_raw |  -1675.798   1753.595    -0.96   0.340    -5122.459    1770.864
             |
          yr |
       2004  |   453.8383   213.7806     2.12   0.034      33.6562    874.0205
       2005  |   207.5883   208.4201     1.00   0.320    -202.0579    617.2345
       2006  |   904.4008   247.1476     3.66   0.000     418.6364    1390.165
       2007  |   2670.463   458.5476     5.82   0.000     1769.196    3571.731
       2008  |     4679.1   627.2254     7.46   0.000     3446.299    5911.901
       2009  |   6044.822    821.692     7.36   0.000       4429.8    7659.844
       2010  |   7979.067    1387.03     5.75   0.000     5252.882    10705.25
       2011  |   10219.05   1884.754     5.42   0.000     6514.597     13923.5
       2012  |   10274.86   1952.096     5.26   0.000     6438.046    14111.67
       2013  |   8353.455   1798.583     4.64   0.000      4818.37    11888.54
       2014  |    6389.33   1660.764     3.85   0.000     3125.126    9653.534
       2015  |    5413.83   1558.613     3.47   0.001     2350.402    8477.258
       2016  |    5923.06   1574.226     3.76   0.000     2828.945    9017.175
       2017  |   2639.591   1386.044     1.90   0.058    -84.65491    5363.837
             |
       mx_id |
          2  |  -10470.94   371.2457   -28.20   0.000    -11200.61    -9741.26
          3  |  -13556.58   2720.567    -4.98   0.000    -18903.81    -8209.35
          4  |  -13549.44   2997.972    -4.52   0.000    -19441.91   -7656.981
          5  |  -9739.211   2116.692    -4.60   0.000    -13899.53   -5578.887
          6  |  -12149.69   2899.778    -4.19   0.000    -17849.16   -6450.229
          7  |   -11445.8   1606.842    -7.12   0.000    -14604.02   -8287.581
          8  |  -7127.905   1726.659    -4.13   0.000    -10521.63   -3734.185
          9  |  -8144.555   376.6957   -21.62   0.000    -8884.944   -7404.166
         10  |  -110.9606   719.0283    -0.15   0.877    -1524.199    1302.277
         11  |  -6232.944   596.7205   -10.45   0.000    -7405.788   -5060.099
         12  |   6824.366   764.6095     8.93   0.000     5321.539    8327.193
         13  |   -7331.87   1679.298    -4.37   0.000     -10632.5   -4031.238
         14  |  -6823.182   1158.489    -5.89   0.000    -9100.173   -4546.192
         15  |  -3903.248   147.5514   -26.45   0.000    -4193.258   -3613.238
         16  |  -1506.533   855.9994    -1.76   0.079    -3188.986     175.919
         17  |  -2801.666   229.8018   -12.19   0.000    -3253.338   -2349.994
         18  |   -1931.85    542.856    -3.56   0.000    -2998.824   -864.8751
         19  |  -6671.313   501.6682   -13.30   0.000    -7657.333   -5685.292
         20  |   -5365.25   1123.705    -4.77   0.000    -7573.872   -3156.627
         21  |  -9014.414     1469.6    -6.13   0.000    -11902.89   -6125.938
         22  |   1614.586   109.7256    14.71   0.000     1398.922     1830.25
         23  |  -12763.41   3214.155    -3.97   0.000    -19080.77    -6446.04
         24  |   1483.051   1095.369     1.35   0.176    -669.8794    3635.981
         25  |  -8005.737   292.1376   -27.40   0.000    -8579.929   -7431.546
         26  |  -6608.057   714.3074    -9.25   0.000    -8012.017   -5204.098
         27  |   -12265.7   2866.129    -4.28   0.000    -17899.03   -6632.375
         28  |  -6103.251   282.9636   -21.57   0.000    -6659.411   -5547.091
         29  |  -9691.193   1439.611    -6.73   0.000    -12520.73   -6861.661
         30  |   -6693.74   1498.155    -4.47   0.000    -9638.338   -3749.142
         31  |  -10746.27   770.6667   -13.94   0.000    -12261.01   -9231.542
         32  |   222.7788   603.3372     0.37   0.712    -963.0704    1408.628
             |
       _cons |   13119.39   4414.097     2.97   0.003     4443.559    21795.23
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    31) =    17.51
  Prob > F      =   0.0002
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    31) =    17.51
  Prob > F      =   0.0002



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    31)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    31)
dpt_tot_prop |      17.51    0.0002 |       20.09   0.0000 |       17.51

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=5.87     P-val=0.0154

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.55
Kleibergen-Paap Wald rk F statistic                                17.51

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,31)=        2.74     P-val=0.1077
Anderson-Rubin Wald test           Chi-sq(1)=      3.15     P-val=0.0760
Stock-Wright LM S statistic        Chi-sq(1)=         .     P-val=     .

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =         32
Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on mx_id

Number of clusters (mx_id) =        32                Number of obs =      480
                                                      F( 48,    31) =    19.25
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9550
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9801
Residual SS             =  8156151.147                Root MSE      =    130.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0225439   .0136808     1.65   0.099    -.0042699    .0493577
  active_exp |  -11.91891   12.23282    -0.97   0.330    -35.89478    12.05697
cons_exp_raw |  -224.9584   164.7538    -1.37   0.172    -547.8699    97.95311
             |
          yr |
       2004  |   119.4085   24.67331     4.84   0.000     71.04972    167.7673
       2005  |   229.8513   37.55463     6.12   0.000     156.2456     303.457
       2006  |   335.3475   54.42287     6.16   0.000     228.6807    442.0144
       2007  |    310.908   62.70717     4.96   0.000     188.0042    433.8118
       2008  |   171.4135   78.88839     2.17   0.030     16.79506    326.0319
       2009  |   32.83516   82.36491     0.40   0.690    -128.5971    194.2674
       2010  |   52.86725   77.91284     0.68   0.497    -99.83912    205.5736
       2011  |   79.68546   95.16744     0.84   0.402    -106.8393    266.2102
       2012  |   85.82807   91.04381     0.94   0.346    -92.61451    264.2706
       2013  |   130.0358   74.32204     1.75   0.080     -15.6327    275.7044
       2014  |   216.3316   64.85508     3.34   0.001     89.21794    343.4452
       2015  |   273.8697   62.90752     4.35   0.000     150.5732    397.1662
       2016  |   306.6835   81.28012     3.77   0.000     147.3774    465.9896
       2017  |  -7.838006   74.62721    -0.11   0.916    -154.1046    138.4286
             |
       mx_id |
          2  |   269.0648   153.5337     1.75   0.080    -31.85565    569.9853
          3  |  -370.4242   275.9419    -1.34   0.179    -911.2604    170.4119
          4  |  -381.9207   278.4898    -1.37   0.170    -927.7507    163.9093
          5  |   216.7598   210.7203     1.03   0.304    -196.2444     629.764
          6  |  -5.505924   268.5452    -0.02   0.984    -531.8448    520.8329
          7  |   831.7008   195.8828     4.25   0.000     447.7776    1215.624
          8  |  -125.9098   163.9755    -0.77   0.443    -447.2959    195.4763
          9  |    90.6615   125.6663     0.72   0.471    -155.6399    336.9629
         10  |   3.379098   67.30353     0.05   0.960    -128.5334    135.2916
         11  |   1344.875   93.09524    14.45   0.000     1162.411    1527.338
         12  |   1660.124   118.2676    14.04   0.000     1428.323    1891.924
         13  |   815.3481   167.8687     4.86   0.000     486.3315    1144.365
         14  |   428.9553   126.3458     3.40   0.001     181.3221    676.5886
         15  |    1614.22   59.71724    27.03   0.000     1497.176    1731.263
         16  |   2076.815   88.56552    23.45   0.000      1903.23      2250.4
         17  |   237.6968   42.56896     5.58   0.000     154.2632    321.1305
         18  |   132.0329   60.34724     2.19   0.029     13.75444    250.3113
         19  |   158.5969   87.98049     1.80   0.071    -13.84174    331.0354
         20  |   870.0093    120.971     7.19   0.000     632.9105    1107.108
         21  |   983.9017   172.0724     5.72   0.000      646.646    1321.157
         22  |   29.56723   26.52998     1.11   0.265    -22.43059    81.56504
         23  |  -399.8923   292.0606    -1.37   0.171    -972.3205     172.536
         24  |   482.5852   120.7203     4.00   0.000     245.9777    719.1927
         25  |    373.849   119.5036     3.13   0.002     139.6263    608.0717
         26  |   25.27343   103.9425     0.24   0.808    -178.4502    228.9971
         27  |  -324.3152   267.8151    -1.21   0.226    -849.2232    200.5928
         28  |   275.8353    77.6014     3.55   0.000     123.7394    427.9313
         29  |  -74.16568    169.869    -0.44   0.662    -407.1027    258.7714
         30  |    853.724   145.2199     5.88   0.000     569.0982     1138.35
         31  |  -74.67039   163.9455    -0.46   0.649    -395.9976    246.6568
         32  |    215.361   56.91146     3.78   0.000     103.8165    326.9054
             |
       _cons |   473.7019   418.3261     1.13   0.257    -346.2022    1293.606
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):              5.869
                                                   Chi-sq(1) P-val =    0.0154
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.549
                         (Kleibergen-Paap rk Wald F statistic):         17.513
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Warning: estimated covariance matrix of moment conditions not of full rank.
         overidentification statistic not reported, and standard errors and
         model tests should be interpreted with caution.
Possible causes:
         number of clusters insufficient to calculate robust covariance matrix
         singleton dummy variable (dummy with one 1 and N-1 0s or vice versa)
partial option may address problem.
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(
> first).yr ib(first).mx_id, cluster(mx_id) first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity and clustering on mx_id
Number of obs =                    480
Number of clusters (mx_id) =        32
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |    944.018   221.2245     4.27   0.000     509.1964     1378.84
  active_exp |  -2771.099   815.1721    -3.40   0.001    -4373.337    -1168.86
cons_exp_raw |  -1346.578   1935.106    -0.70   0.487    -5150.071    2456.916
         pop |   997.1485   852.4534     1.17   0.243    -678.3676    2672.665
   ann_pr_mx |   .7243704   .4621371     1.57   0.118    -.1839703    1.632711
  avg_tmp_mx |  -474.5545   251.0335    -1.89   0.059    -967.9664    18.85739
             |
          yr |
       2004  |     412.66   285.3767     1.45   0.149    -148.2543    973.5743
       2005  |   478.0201   331.4178     1.44   0.150     -173.389    1129.429
       2006  |   1129.431   389.2178     2.90   0.004     364.4145    1894.447
       2007  |   2793.947   524.5673     5.33   0.000     1762.899    3824.996
       2008  |   4743.609   706.7025     6.71   0.000     3354.569    6132.648
       2009  |   6387.898   912.9537     7.00   0.000     4593.467    8182.329
       2010  |   7882.862    1317.72     5.98   0.000     5292.855    10472.87
       2011  |   10520.24   1842.619     5.71   0.000     6898.534    14141.95
       2012  |   10454.91   1890.033     5.53   0.000     6740.009    14169.81
       2013  |   8300.042    1726.22     4.81   0.000     4907.119    11692.96
       2014  |   6312.348   1571.887     4.02   0.000      3222.77    9401.927
       2015  |   5465.299   1479.266     3.69   0.000      2557.77    8372.829
       2016  |   6040.037   1496.307     4.04   0.000     3099.013    8981.061
       2017  |  -1851.822   3165.244    -0.59   0.559    -8073.178    4369.535
             |
       mx_id |
          2  |  -12179.56   1832.546    -6.65   0.000    -15781.47   -8577.654
          3  |  -10137.43   3339.068    -3.04   0.003    -16700.44    -3574.42
          4  |  -9522.089   4045.889    -2.35   0.019    -17474.37   -1569.805
          5  |  -10967.27    4397.46    -2.49   0.013    -19610.58   -2323.964
          6  |  -14440.64   4193.347    -3.44   0.001    -22682.76   -6198.525
          7  |  -21764.07   7634.175    -2.85   0.005     -36769.2   -6758.927
          8  |  -7104.502   2684.653    -2.65   0.008    -12381.25   -1827.758
          9  |  -4212.493   2144.118    -1.96   0.050    -8426.804    1.816925
         10  |  -672.9727   971.7552    -0.69   0.489    -2582.979    1237.034
         11  |  -21413.53   12167.72    -1.76   0.079    -45329.46    2502.404
         12  |    2585.68   3450.675     0.75   0.454    -4196.697    9368.058
         13  |  -6640.731   3202.322    -2.07   0.039    -12934.97   -346.4954
         14  |  -9015.494    2084.57    -4.32   0.000    -13112.76   -4918.225
         15  |  -9053.522   5004.958    -1.81   0.071    -18890.88    783.8331
         16  |  -3151.574   2357.238    -1.34   0.182    -7784.777    1481.629
         17  |  -1733.674   1076.056    -1.61   0.108    -3848.685    381.3376
         18  |   -542.592   1094.983    -0.50   0.620    -2694.806    1609.622
         19  |  -8523.603   3115.976    -2.74   0.006    -14648.12   -2399.083
         20  |  -6483.778   2802.024    -2.31   0.021    -11991.22   -976.3379
         21  |  -13154.38   4564.802    -2.88   0.004     -22126.6   -4182.157
         22  |  -112.4881   845.9494    -0.13   0.894     -1775.22    1550.244
         23  |  -9101.987   4355.354    -2.09   0.037    -17662.53   -541.4421
         24  |   640.3683   1358.646     0.47   0.638    -2030.081    3310.818
         25  |  -6875.918   1601.934    -4.29   0.000    -10024.55   -3727.281
         26  |  -6102.795   1775.253    -3.44   0.001    -9592.093   -2613.496
         27  |   -9893.05   4182.606    -2.37   0.018    -18114.05   -1672.045
         28  |  -6072.811    1926.36    -3.15   0.002    -9859.115   -2286.508
         29  |  -10500.13   1581.196    -6.64   0.000    -13608.01   -7392.255
         30  |  -10846.36   5907.544    -1.84   0.067    -22457.77    765.0469
         31  |  -7753.845   2441.209    -3.18   0.002     -12552.1   -2955.595
         32  |  -297.7551   783.1696    -0.38   0.704    -1837.092    1241.582
             |
       _cons |   19280.09   5795.551     3.33   0.001     7888.805    30671.37
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    31) =    18.21
  Prob > F      =   0.0002
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    31) =    18.21
  Prob > F      =   0.0002



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    31)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    31)
dpt_tot_prop |      18.21    0.0002 |       21.04   0.0000 |       18.21

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=5.77     P-val=0.0163

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      41.07
Kleibergen-Paap Wald rk F statistic                                18.21

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,31)=        2.80     P-val=0.1042
Anderson-Rubin Wald test           Chi-sq(1)=      3.24     P-val=0.0720
Stock-Wright LM S statistic        Chi-sq(1)=         .     P-val=     .

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =         32
Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on mx_id

Number of clusters (mx_id) =        32                Number of obs =      480
                                                      F( 51,    31) =   283.83
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9563
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9807
Residual SS             =  7916176.977                Root MSE      =    128.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0215531   .0126402     1.71   0.088    -.0032213    .0463274
  active_exp |  -9.483084   10.37249    -0.91   0.361    -29.81278    10.84662
cons_exp_raw |  -190.2735   167.0523    -1.14   0.255      -517.69     137.143
         pop |  -75.82825   76.42116    -0.99   0.321     -225.611    73.95446
   ann_pr_mx |   .0405232   .0326871     1.24   0.215    -.0235424    .1045889
  avg_tmp_mx |  -19.40849   15.75048    -1.23   0.218    -50.27886    11.46189
             |
          yr |
       2004  |   122.8847   25.24553     4.87   0.000     73.40436     172.365
       2005  |   252.0758   39.03948     6.46   0.000     175.5598    328.5918
       2006  |   363.8431   57.97652     6.28   0.000     250.2112     477.475
       2007  |   343.5842   69.28613     4.96   0.000     207.7859    479.3826
       2008  |   215.4817   81.07069     2.66   0.008     56.58601    374.3773
       2009  |   95.91827   83.98412     1.14   0.253    -68.68757    260.5241
       2010  |    94.3179   75.17855     1.25   0.210    -53.02936    241.6651
       2011  |   141.1427   94.64502     1.49   0.136    -44.35816    326.6435
       2012  |   144.9533   89.95951     1.61   0.107    -31.36407    321.2707
       2013  |   180.2593   73.75979     2.44   0.015     35.69281    324.8259
       2014  |   268.6706   66.95813     4.01   0.000     137.4351    399.9062
       2015  |   336.2538   68.59046     4.90   0.000      201.819    470.6886
       2016  |   379.6091   87.14417     4.36   0.000     208.8097    550.4086
       2017  |  -114.9845   177.6669    -0.65   0.518    -463.2052    233.2362
             |
       mx_id |
          2  |   426.3631   230.9046     1.85   0.065    -26.20158    878.9277
          3  |  -267.6154   304.9789    -0.88   0.380    -865.3631    330.1322
          4  |  -238.6941   325.4466    -0.73   0.463    -876.5578    399.1696
          5  |   589.1079   397.1775     1.48   0.138    -189.3457    1367.561
          6  |   189.8482   344.1135     0.55   0.581    -484.6019    864.2983
          7  |   1312.035   673.1353     1.95   0.051    -7.285717    2631.356
          8  |   74.48909   223.0618     0.33   0.738    -362.7039    511.6821
          9  |   170.0179   146.5202     1.16   0.246    -117.1564    457.1922
         10  |   41.47288   74.49397     0.56   0.578    -104.5326    187.4784
         11  |   2341.826   1098.378     2.13   0.033      189.045    4494.608
         12  |    1973.87   323.9689     6.09   0.000     1338.903    2608.838
         13  |   1105.509   274.6236     4.03   0.000     567.2567    1643.762
         14  |   516.2295   189.1645     2.73   0.006     145.4738    886.9851
         15  |   2109.687   486.8716     4.33   0.000     1155.437    3063.938
         16  |   2355.273   258.0391     9.13   0.000     1849.526     2861.02
         17  |   344.3628    90.5014     3.81   0.000     166.9833    521.7423
         18  |   158.2578    73.2927     2.16   0.031     14.60674    301.9088
         19  |   492.9817   299.2293     1.65   0.099    -93.49695     1079.46
         20  |   1128.024   261.2387     4.32   0.000     616.0057    1640.043
         21  |   1356.563     426.42     3.18   0.001     520.7953    2192.331
         22  |    35.9804   61.91589     0.58   0.561    -85.37251    157.3333
         23  |  -206.7821   345.9939    -0.60   0.550    -884.9177    471.3534
         24  |   593.6878   157.4898     3.77   0.000     285.0135    902.3621
         25  |   589.4162     187.27     3.15   0.002     222.3738    956.4587
         26  |    218.491   170.5991     1.28   0.200    -115.8771     552.859
         27  |  -97.59797   339.2609    -0.29   0.774    -762.5371    567.3412
         28  |   510.6548   195.1061     2.62   0.009     128.2539    893.0558
         29  |  -103.0191    179.361    -0.57   0.566    -454.5602    248.5219
         30  |   1426.524   545.5368     2.61   0.009     357.2917    2495.757
         31  |   133.2479   223.7133     0.60   0.551    -305.2221     571.718
         32  |   236.8201   58.69546     4.03   0.000     121.7791    351.8611
             |
       _cons |   767.0719   475.2362     1.61   0.107     -164.374    1698.518
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):              5.774
                                                   Chi-sq(1) P-val =    0.0163
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               41.072
                         (Kleibergen-Paap rk Wald F statistic):         18.209
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Warning: estimated covariance matrix of moment conditions not of full rank.
         overidentification statistic not reported, and standard errors and
         model tests should be interpreted with caution.
Possible causes:
         number of clusters insufficient to calculate robust covariance matrix
         singleton dummy variable (dummy with one 1 and N-1 0s or vice versa)
partial option may address problem.
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 ib(first).yr 
> ib(first).mx_id, cluster(mx_id) first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity and clustering on mx_id
Number of obs =                    480
Number of clusters (mx_id) =        32
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   887.1527   195.3006     4.54   0.000     503.2928    1271.013
  active_exp_w1 |  -2573.898   727.0255    -3.54   0.000    -4002.854   -1144.941
cons_exp_raw_w1 |  -1558.945   1709.722    -0.91   0.362    -4919.375    1801.485
                |
             yr |
          2004  |   440.5596   208.7326     2.11   0.035     30.29913      850.82
          2005  |   195.8562   203.2051     0.96   0.336    -203.5399    595.2524
          2006  |   891.1221    241.691     3.69   0.000     416.0824    1366.162
          2007  |   2657.185   453.3671     5.86   0.000     1766.099     3548.27
          2008  |   4693.706   629.3997     7.46   0.000     3456.632    5930.781
          2009  |   6041.242   817.6589     7.39   0.000     4434.147    7648.337
          2010  |   7880.972   1334.118     5.91   0.000     5258.785    10503.16
          2011  |   9916.314   1732.667     5.72   0.000     6510.785    13321.84
          2012  |   10004.74   1823.321     5.49   0.000     6421.031    13588.44
          2013  |   8187.085   1724.812     4.75   0.000     4796.995    11577.17
          2014  |    6222.96   1589.752     3.91   0.000      3098.33     9347.59
          2015  |    5247.46   1492.496     3.52   0.000     2313.983    8180.937
          2016  |   5738.617    1495.18     3.84   0.000     2799.866    8677.369
          2017  |   2459.517   1308.732     1.88   0.061    -112.7741    5031.808
                |
          mx_id |
             2  |  -10486.67   372.0642   -28.19   0.000    -11217.96   -9755.387
             3  |     -13405   2678.488    -5.00   0.000    -18669.52   -8140.472
             4  |  -13366.86   2938.881    -4.55   0.000    -19143.18   -7590.535
             5  |  -9637.218   2086.962    -4.62   0.000    -13739.11   -5535.329
             6  |  -11979.99   2845.745    -4.21   0.000    -17573.25   -6386.726
             7  |  -11381.65   1589.573    -7.16   0.000    -14505.93   -8257.372
             8  |  -7043.175   1702.259    -4.14   0.000    -10388.94   -3697.412
             9  |  -8168.635   369.4767   -22.11   0.000    -8894.835   -7442.435
            10  |  -83.79627   712.2826    -0.12   0.906    -1483.776    1316.183
            11  |  -6213.532   592.1735   -10.49   0.000    -7377.439   -5049.624
            12  |   6248.554   765.4415     8.16   0.000     4744.092    7753.017
            13  |  -7258.867   1659.105    -4.38   0.000    -10519.81   -3997.925
            14  |  -6775.103   1145.761    -5.91   0.000    -9027.076   -4523.129
            15  |      -3917   142.5074   -27.49   0.000    -4197.096   -3636.905
            16  |  -1519.052   854.8327    -1.78   0.076    -3199.212    161.1072
            17  |  -2798.121   229.1673   -12.21   0.000    -3248.545   -2347.696
            18  |  -1947.064   540.0807    -3.61   0.000    -3008.584   -885.5445
            19  |  -6645.491   494.5666   -13.44   0.000    -7617.554   -5673.429
            20  |  -5328.359   1114.592    -4.78   0.000    -7519.072   -3137.647
            21  |  -8964.147    1456.76    -6.15   0.000    -11827.38    -6100.91
            22  |   1621.074   107.8007    15.04   0.000     1409.194    1832.955
            23  |   -12567.2   3144.117    -4.00   0.000    -18746.91   -6387.491
            24  |   1489.949   1097.901     1.36   0.175    -667.9573    3647.855
            25  |  -8020.586   288.2388   -27.83   0.000    -8587.115   -7454.058
            26  |  -6585.452   708.8509    -9.29   0.000    -7978.686   -5192.217
            27  |   -12099.8   2813.521    -4.30   0.000    -17629.73   -6569.869
            28  |  -6086.218   277.9955   -21.89   0.000    -6632.613   -5539.822
            29  |  -9633.654   1424.265    -6.76   0.000    -12433.02   -6834.284
            30  |  -6622.536   1478.071    -4.48   0.000     -9527.66   -3717.412
            31  |  -10743.45   770.2906   -13.95   0.000    -12257.45    -9229.46
            32  |   246.3765   597.4281     0.41   0.680    -927.8584    1420.611
                |
          _cons |   12851.12   4321.655     2.97   0.003     4356.976    21345.26
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    31) =    20.63
  Prob > F      =   0.0001
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    31) =    20.63
  Prob > F      =   0.0001



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    31)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    31)
dpt_tot_prop |      20.63    0.0001 |       23.67   0.0000 |       20.63

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=6.02     P-val=0.0142

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      38.01
Kleibergen-Paap Wald rk F statistic                                20.63

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,31)=        2.60     P-val=0.1173
Anderson-Rubin Wald test           Chi-sq(1)=      2.98     P-val=0.0844
Stock-Wright LM S statistic        Chi-sq(1)=         .     P-val=     .

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =         32
Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on mx_id

Number of clusters (mx_id) =        32                Number of obs =      480
                                                      F( 48,    31) =    15.97
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9553
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9803
Residual SS             =  8063792.857                Root MSE      =    129.6

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0234206   .0142993     1.64   0.101    -.0046056    .0514467
  active_exp_w1 |  -12.14032   12.22285    -0.99   0.321    -36.09666    11.81603
cons_exp_raw_w1 |  -202.5076   174.3357    -1.16   0.245    -544.1992     139.184
                |
             yr |
          2004  |   116.6623    24.2604     4.81   0.000     69.11275    164.2118
          2005  |   227.0768   37.17331     6.11   0.000     154.2185    299.9352
          2006  |   331.9985   53.86772     6.16   0.000     226.4197    437.5772
          2007  |   306.0108   62.25137     4.92   0.000     184.0003    428.0212
          2008  |   170.1352   82.16471     2.07   0.038     9.095373    331.1751
          2009  |   30.72896   86.93416     0.35   0.724    -139.6589    201.1168
          2010  |   50.98999    82.3081     0.62   0.536    -110.3309    212.3109
          2011  |   80.48503   99.40185     0.81   0.418     -114.339    275.3091
          2012  |   84.76992   94.83897     0.89   0.371     -101.111    270.6509
          2013  |   128.2083   76.98519     1.67   0.096    -22.67991    279.0965
          2014  |   216.2258    66.3973     3.26   0.001     86.08953    346.3622
          2015  |   274.2695   64.05274     4.28   0.000     148.7284    399.8106
          2016  |   304.1561    80.5483     3.78   0.000     146.2843    462.0278
          2017  |  -.5697438   75.04469    -0.01   0.994    -147.6546    146.5152
                |
          mx_id |
             2  |   285.2412   159.5247     1.79   0.074    -27.42145    597.9039
             3  |  -325.8155   287.9401    -1.13   0.258    -890.1678    238.5368
             4  |  -337.2788   291.0014    -1.16   0.246    -907.6311    233.0735
             5  |   250.5044    220.114     1.14   0.255    -180.9112    681.9199
             6  |   37.45879   280.8646     0.13   0.894    -513.0257    587.9433
             7  |   861.8722   203.7219     4.23   0.000     462.5846     1261.16
             8  |  -99.63742   171.4643    -0.58   0.561    -435.7013    236.4264
             9  |   94.90618   131.7023     0.72   0.471    -163.2255    353.0379
            10  |   12.24033   71.13414     0.17   0.863      -127.18    151.6607
            11  |    1357.92   96.65414    14.05   0.000     1168.481    1547.359
            12  |   1656.181   117.0971    14.14   0.000     1426.675    1885.688
            13  |   842.2324   175.4358     4.80   0.000     498.3845     1186.08
            14  |   448.9505   131.6009     3.41   0.001     191.0175    706.8835
            15  |   1617.144   62.43447    25.90   0.000     1494.774    1739.513
            16  |   2051.193   93.75471    21.88   0.000     1867.437    2234.949
            17  |   243.4402   44.18478     5.51   0.000     156.8396    330.0408
            18  |   127.4001   63.85353     2.00   0.046     2.249485    252.5507
            19  |   169.5783   91.40892     1.86   0.064    -9.579851    348.7365
            20  |    889.344   126.2921     7.04   0.000     641.8161    1136.872
            21  |   1010.957   179.1968     5.64   0.000     659.7373    1362.176
            22  |   29.20556   27.88974     1.05   0.295    -25.45731    83.86844
            23  |  -352.4198   305.0011    -1.16   0.248    -950.2109    245.3713
            24  |    464.261   127.0276     3.65   0.000     215.2916    713.2305
            25  |   378.2954   125.2312     3.02   0.003     132.8467    623.7441
            26  |   40.39396   107.9453     0.37   0.708     -171.175    251.9629
            27  |  -281.4458   280.0308    -1.01   0.315    -830.2962    267.4045
            28  |   283.5877   80.82356     3.51   0.000     125.1764     441.999
            29  |  -47.75612   176.7417    -0.27   0.787    -394.1635    298.6513
            30  |    877.032   151.7057     5.78   0.000     579.6944     1174.37
            31  |  -53.31466   170.1429    -0.31   0.754    -386.7886    280.1593
            32  |   222.4043   60.20608     3.69   0.000     104.4026     340.406
                |
          _cons |   408.6898   440.7908     0.93   0.354    -455.2443    1272.624
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):              6.015
                                                   Chi-sq(1) P-val =    0.0142
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               38.006
                         (Kleibergen-Paap rk Wald F statistic):         20.634
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Warning: estimated covariance matrix of moment conditions not of full rank.
         overidentification statistic not reported, and standard errors and
         model tests should be interpreted with caution.
Possible causes:
         number of clusters insufficient to calculate robust covariance matrix
         singleton dummy variable (dummy with one 1 and N-1 0s or vice versa)
partial option may address problem.
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx
>  avg_tmp_mx ib(first).yr ib(first).mx_id, cluster(mx_id) first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity and clustering on mx_id
Number of obs =                    480
Number of clusters (mx_id) =        32
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   897.8876   196.0857     4.58   0.000     512.4768    1283.298
  active_exp_w1 |  -2630.396    746.244    -3.52   0.000    -4097.155   -1163.637
cons_exp_raw_w1 |  -1249.622   1888.078    -0.66   0.508    -4960.681    2461.436
            pop |   934.1738   800.9639     1.17   0.244    -640.1385    2508.486
      ann_pr_mx |   .7493387   .4489108     1.67   0.096    -.1330054    1.631683
     avg_tmp_mx |  -478.0456   250.2629    -1.91   0.057    -969.9428    13.85155
                |
             yr |
          2004  |    409.738   281.7637     1.45   0.147    -144.0747    963.5508
          2005  |   485.1454   326.3077     1.49   0.138    -156.2195     1126.51
          2006  |   1140.149    384.136     2.97   0.003     385.1212    1895.177
          2007  |   2807.854   523.5218     5.36   0.000      1778.86    3836.847
          2008  |   4782.481   703.1857     6.80   0.000     3400.354    6164.608
          2009  |   6417.325   914.6621     7.02   0.000     4619.537    8215.114
          2010  |   7814.157   1292.265     6.05   0.000     5274.182    10354.13
          2011  |   10254.67   1742.508     5.89   0.000     6829.736    13679.61
          2012  |   10225.03    1810.14     5.65   0.000     6667.157     13782.9
          2013  |   8172.214   1687.359     4.84   0.000     4855.672    11488.75
          2014  |   6187.427   1538.475     4.02   0.000     3163.521    9211.333
          2015  |   5345.723   1452.652     3.68   0.000     2490.503    8200.943
          2016  |   5901.291   1466.964     4.02   0.000     3017.941     8784.64
          2017  |  -2005.072   3183.794    -0.63   0.529     -8262.89    4252.746
                |
          mx_id |
             2  |  -12070.13   1738.312    -6.94   0.000    -15486.82   -8653.439
             3  |  -10027.69   3309.552    -3.03   0.003    -16532.69   -3522.694
             4  |  -9383.751   4010.104    -2.34   0.020     -17265.7   -1501.803
             5  |   -10675.2   4228.465    -2.52   0.012    -18986.34   -2364.062
             6  |  -14163.72    4015.31    -3.53   0.000     -22055.9    -6271.54
             7  |   -21266.4   7210.598    -2.95   0.003    -35438.99   -7093.816
             8  |  -6929.277   2592.027    -2.67   0.008    -12023.96   -1834.591
             9  |  -4250.078   2106.592    -2.02   0.044     -8390.63   -109.5257
            10  |  -629.4395   943.4315    -0.67   0.505    -2483.775    1224.896
            11  |  -20546.97   11446.22    -1.80   0.073    -43044.77    1950.834
            12  |   2285.739   3243.313     0.70   0.481    -4089.065    8660.543
            13  |  -6441.561   3110.049    -2.07   0.039    -12554.43   -328.6901
            14  |  -8899.704   1995.345    -4.46   0.000     -12821.6   -4977.809
            15  |  -8679.274    4707.65    -1.84   0.066    -17932.26    573.7155
            16  |  -2950.956   2233.553    -1.32   0.187    -7341.054    1439.143
            17  |  -1692.981   1067.568    -1.59   0.114    -3791.309    405.3485
            18  |  -561.3385   1077.676    -0.52   0.603    -2679.534    1556.857
            19  |  -8270.434   2937.745    -2.82   0.005    -14044.64   -2496.232
            20  |  -6302.878    2686.44    -2.35   0.019    -11583.14   -1022.621
            21  |  -12842.88   4323.805    -2.97   0.003    -21341.41   -4344.343
            22  |   -78.9459   814.6978    -0.10   0.923    -1680.253    1522.361
            23  |  -8921.397   4299.639    -2.07   0.039    -17372.43   -470.3608
            24  |   753.3447    1328.65     0.57   0.571    -1858.145    3364.835
            25  |  -6772.524    1570.69    -4.31   0.000     -9859.75   -3685.297
            26  |  -5982.448    1715.79    -3.49   0.001    -9354.872   -2610.024
            27  |  -9700.379    4121.73    -2.35   0.019    -17801.73   -1599.027
            28  |  -5919.047   1846.309    -3.21   0.001    -9548.009   -2290.085
            29  |  -10476.67   1560.757    -6.71   0.000    -13544.37   -7408.964
            30  |   -10400.7   5591.699    -1.86   0.064    -21391.31    589.9093
            31  |  -7697.432   2427.434    -3.17   0.002    -12468.61   -2926.257
            32  |  -265.1422   761.5059    -0.35   0.728    -1761.899    1231.615
                |
          _cons |   19154.08   5692.343     3.36   0.001     7965.652    30342.51
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    31) =    20.97
  Prob > F      =   0.0001
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    31) =    20.97
  Prob > F      =   0.0001



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    31)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    31)
dpt_tot_prop |      20.97    0.0001 |       24.22   0.0000 |       20.97

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=5.89     P-val=0.0152

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.53
Kleibergen-Paap Wald rk F statistic                                20.97

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,31)=        2.66     P-val=0.1132
Anderson-Rubin Wald test           Chi-sq(1)=      3.07     P-val=0.0798
Stock-Wright LM S statistic        Chi-sq(1)=         .     P-val=     .

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =         32
Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on mx_id

Number of clusters (mx_id) =        32                Number of obs =      480
                                                      F( 51,    31) =   278.76
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9566
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9809
Residual SS             =  7826574.232                Root MSE      =    127.7

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |    .022402   .0132783     1.69   0.092     -.003623     .048427
  active_exp_w1 |   -9.80142   10.36962    -0.95   0.345     -30.1255    10.52266
cons_exp_raw_w1 |  -169.2028   175.6838    -0.96   0.335    -513.5367    175.1312
            pop |  -74.87545   76.69136    -0.98   0.329    -225.1877    75.43686
      ann_pr_mx |   .0415237   .0329826     1.26   0.208     -.023121    .1061684
     avg_tmp_mx |   -19.1113   15.66964    -1.22   0.223    -49.82323    11.60062
                |
             yr |
          2004  |   120.6614   24.82852     4.86   0.000     71.99834    169.3244
          2005  |   249.8385   38.71259     6.45   0.000     173.9632    325.7138
          2006  |    361.098   57.50642     6.28   0.000     248.3875    473.8085
          2007  |   339.3101   69.07878     4.91   0.000     203.9182     474.702
          2008  |   214.4898   84.95074     2.52   0.012     47.98937    380.9901
          2009  |   94.12864   89.34102     1.05   0.292    -80.97655    269.2338
          2010  |   92.96919   80.38589     1.16   0.247    -64.58426    250.5226
          2011  |   142.3275   99.80772     1.43   0.154    -53.29204     337.947
          2012  |   144.4301   94.59956     1.53   0.127     -40.9816    329.8419
          2013  |   178.9084   76.83843     2.33   0.020     28.30787     329.509
          2014  |     268.94   68.77182     3.91   0.000     134.1497    403.7303
          2015  |   336.9571   69.96619     4.82   0.000     199.8259    474.0883
          2016  |   377.0447   86.64693     4.35   0.000     207.2198    546.8695
          2017  |  -104.1309   178.1155    -0.58   0.559    -453.2309    244.9691
                |
          mx_id |
             2  |   440.3745   237.1608     1.86   0.063    -24.45207    905.2011
             3  |  -225.9979   313.5139    -0.72   0.471     -840.474    388.4781
             4  |  -199.2989   333.2427    -0.60   0.550    -852.4427    453.8449
             5  |   614.3905   405.3554     1.52   0.130    -180.0915    1408.872
             6  |   228.6539   357.2199     0.64   0.522    -471.4842     928.792
             7  |   1334.352   682.7493     1.95   0.051    -3.811701    2672.516
             8  |   97.13219   230.2816     0.42   0.673    -354.2115    548.4759
             9  |   172.1418   150.9965     1.14   0.254    -123.8059    468.0895
            10  |   49.37069   78.23096     0.63   0.528    -103.9592    202.7006
            11  |   2341.034   1105.206     2.12   0.034     174.8702    4507.198
            12  |    1966.04   323.2664     6.08   0.000     1332.449     2599.63
            13  |   1126.617   280.7731     4.01   0.000     576.3119    1676.922
            14  |   534.0686   195.1334     2.74   0.006     151.6141     916.523
            15  |   2105.667   489.6238     4.30   0.000     1146.022    3065.312
            16  |   2326.006   259.5254     8.96   0.000     1817.345    2834.666
            17  |   347.7256   91.45245     3.80   0.000     168.4821    526.9691
            18  |    152.394   77.31948     1.97   0.049     .8505733    303.9374
            19  |   499.0187    302.758     1.65   0.099    -94.37616    1092.413
            20  |   1142.003   265.9851     4.29   0.000     620.6818    1663.324
            21  |   1376.757   434.0515     3.17   0.002     526.0316    2227.482
            22  |   35.23016   62.20639     0.57   0.571    -86.69213    157.1525
            23  |  -165.5847   354.4628    -0.47   0.640    -860.3189    529.1496
            24  |   574.4935   160.7503     3.57   0.000     259.4287    889.5583
            25  |   590.3733    191.628     3.08   0.002     214.7894    965.9572
            26  |   230.5408   174.2872     1.32   0.186    -111.0559    572.1374
            27  |  -62.00577   347.9854    -0.18   0.859    -744.0447    620.0332
            28  |   514.5092   197.8096     2.60   0.009     126.8094     902.209
            29  |  -77.95143   185.8701    -0.42   0.675    -442.2502    286.3474
            30  |   1439.483   551.5649     2.61   0.009     358.4358    2520.531
            31  |   149.7176   228.1997     0.66   0.512    -297.5456    596.9808
            32  |   243.3216   62.10579     3.92   0.000     121.5965    365.0467
                |
          _cons |    698.697   495.5722     1.41   0.159    -272.6067    1670.001
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):              5.890
                                                   Chi-sq(1) P-val =    0.0152
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.529
                         (Kleibergen-Paap rk Wald F statistic):         20.968
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Warning: estimated covariance matrix of moment conditions not of full rank.
         overidentification statistic not reported, and standard errors and
         model tests should be interpreted with caution.
Possible causes:
         number of clusters insufficient to calculate robust covariance matrix
         singleton dummy variable (dummy with one 1 and N-1 0s or vice versa)
partial option may address problem.
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Set notes in \scriptsize. Next, move final eight lines of firs
> t table to end of second table. Delete \midrule between the the tables. Penultimately, consolidate not
> es by moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which
>  should sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleibergen-Paa
> p F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_clst.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}
> ", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0
> .5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop 
> "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0
> .5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2}" "\t
> extit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0
> ) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deporta
> tions on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 dpt_tot
> _prop active_exp_w1 active_exp cons_exp_raw_w1 cons_exp_raw) stats(N F Fp widstat, fmt(0 3 3 3) label(
> Observations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Clustered standa
> rd errors in parentheses. All models contain state and year fixed effects.") collabels(none) noobs boo
> ktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_clst.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_clst.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_c
> lst.tex", append refcat(sc_cons_raw "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 
> 0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_raw "\hspace{0.5cm} Policy $\times$ Partisanship" act
> ive_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "\hspace{0.5cm} Populat
> ion (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} Temperature (ºC)"
>  _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_raw_w1 sc_cons_raw active_exp_w1 active_exp 
> cons_exp_raw_w1 cons_exp_raw) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_clst.tex)

. 
. 
. 
. /***** Conduct regression with emigrant outflows as a control variable *****/
. /*** Conduct regression analysis with emigrant outflows as a control variable ***/
. /** Instrumental variable regression with robust standard errors as well as state and year fixed effec
> ts. Use the first state and year as the reference category. **/
. /* Original data */
. // Clear storage
. eststo clear

. // Without control variables
. tsset mx_id yr

Panel variable: mx_id (strongly balanced)
 Time variable: yr, 2003 to 2017
         Delta: 1 unit

. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw ib(first).yr ib(first).mx_id
> , robust first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   932.7882   186.6763     5.00   0.000      565.879    1299.697
  active_exp |  -2713.358   625.6173    -4.34   0.000    -3942.998   -1483.718
cons_exp_raw |  -1675.798   1980.943    -0.85   0.398    -5569.308    2217.713
             |
          yr |
       2004  |   453.8383   580.2747     0.78   0.435    -686.6819    1594.359
       2005  |   207.5883   586.0168     0.35   0.723    -944.2179    1359.395
       2006  |   904.4008   533.6717     1.69   0.091     -144.522    1953.324
       2007  |   2670.463   463.1673     5.77   0.000     1760.116    3580.811
       2008  |     4679.1   565.4618     8.27   0.000     3567.694    5790.506
       2009  |   6044.822   641.0978     9.43   0.000     4784.755    7304.889
       2010  |   7979.067   877.2665     9.10   0.000     6254.814    9703.319
       2011  |   10219.05    1220.36     8.37   0.000     7820.451    12617.65
       2012  |   10274.86   1270.399     8.09   0.000      7777.91    12771.81
       2013  |   8353.455   1191.452     7.01   0.000     6011.677    10695.23
       2014  |    6389.33   1179.748     5.42   0.000     4070.556    8708.104
       2015  |    5413.83   1184.845     4.57   0.000     3085.037    7742.623
       2016  |    5923.06   1209.056     4.90   0.000      3546.68     8299.44
       2017  |   2639.591   1359.171     1.94   0.053    -31.83773     5311.02
             |
       mx_id |
          2  |  -10470.94   942.0968   -11.11   0.000    -12322.61   -8619.262
          3  |  -13556.58   3254.315    -4.17   0.000    -19952.88   -7160.278
          4  |  -13549.44   3418.359    -3.96   0.000    -20268.17   -6830.718
          5  |  -9739.211   2545.269    -3.83   0.000     -14741.9   -4736.526
          6  |  -12149.69    3316.15    -3.66   0.000    -18667.53   -5631.857
          7  |   -11445.8   2065.662    -5.54   0.000    -15505.83   -7385.779
          8  |  -7127.905   2067.392    -3.45   0.001    -11191.33   -3064.481
          9  |  -8144.555   786.1286   -10.36   0.000    -9689.677   -6599.432
         10  |  -110.9606   1167.178    -0.10   0.924    -2405.029    2183.108
         11  |  -6232.944   912.7817    -6.83   0.000    -8027.001   -4438.886
         12  |   6824.366   2019.409     3.38   0.001      2855.25    10793.48
         13  |   -7331.87   2061.548    -3.56   0.000    -11383.81   -3279.931
         14  |  -6823.182    1468.12    -4.65   0.000    -9708.747   -3937.617
         15  |  -3903.248   660.7549    -5.91   0.000    -5201.951   -2604.545
         16  |  -1506.533   1436.654    -1.05   0.295    -4330.252    1317.185
         17  |  -2801.666   724.9068    -3.86   0.000    -4226.458   -1376.874
         18  |   -1931.85   1057.272    -1.83   0.068    -4009.899    146.2003
         19  |  -6671.313   800.3116    -8.34   0.000    -8244.312   -5098.314
         20  |   -5365.25    1483.31    -3.62   0.000     -8280.67   -2449.829
         21  |  -9014.414   1905.937    -4.73   0.000     -12760.5   -5268.327
         22  |   1614.586    1049.44     1.54   0.125    -448.0706    3677.243
         23  |  -12763.41   3622.104    -3.52   0.000    -19882.59   -5644.221
         24  |   1483.051   1821.392     0.81   0.416    -2096.865    5062.967
         25  |  -8005.737   860.2252    -9.31   0.000    -9696.496   -6314.979
         26  |  -6608.057   1288.861    -5.13   0.000    -9141.292   -4074.823
         27  |   -12265.7   3260.845    -3.76   0.000    -18674.84   -5856.567
         28  |  -6103.251   650.0265    -9.39   0.000    -7380.867   -4825.635
         29  |  -9691.193   1862.457    -5.20   0.000    -13351.82   -6030.565
         30  |   -6693.74   1823.416    -3.67   0.000    -10277.63   -3109.847
         31  |  -10746.27   1247.123    -8.62   0.000    -13197.47   -8295.076
         32  |   222.7788   1095.281     0.20   0.839    -1929.978    2375.536
             |
       _cons |   13119.39   5144.362     2.55   0.011     3008.234    23230.55
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      24.97    0.0000 |       27.81   0.0000 |       24.97

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.76    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.55
Kleibergen-Paap Wald rk F statistic                                24.97

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.21     P-val=0.0131
Anderson-Rubin Wald test           Chi-sq(1)=      6.92     P-val=0.0085
Stock-Wright LM S statistic        Chi-sq(1)=      7.86     P-val=0.0051

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   156.60
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9550
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9801
Residual SS             =  8156151.147                Root MSE      =    130.4

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0225439   .0088484     2.55   0.011     .0052014    .0398865
  active_exp |  -11.91891   8.296719    -1.44   0.151    -28.18017    4.342365
cons_exp_raw |  -224.9584   136.6194    -1.65   0.100    -492.7275    42.81075
             |
          yr |
       2004  |   119.4085   34.62332     3.45   0.001     51.54805     187.269
       2005  |   229.8513   34.30454     6.70   0.000     162.6156    297.0869
       2006  |   335.3475   41.56583     8.07   0.000       253.88    416.8151
       2007  |    310.908   47.61961     6.53   0.000     217.5753    404.2408
       2008  |   171.4135   57.77331     2.97   0.003     58.17987    284.6471
       2009  |   32.83516   62.60031     0.52   0.600     -89.8592    155.5295
       2010  |   52.86725   59.54522     0.89   0.375    -63.83923    169.5737
       2011  |   79.68546   70.42225     1.13   0.258    -58.33961    217.7105
       2012  |   85.82807   68.46431     1.25   0.210    -48.35951    220.0156
       2013  |   130.0358    57.4293     2.26   0.024     17.47646    242.5952
       2014  |   216.3316   49.74305     4.35   0.000      118.837    313.8261
       2015  |   273.8697   43.74784     6.26   0.000     188.1255    359.6139
       2016  |   306.6835   49.35034     6.21   0.000     209.9586    403.4084
       2017  |  -7.838006   58.35669    -0.13   0.893     -122.215     106.539
             |
       mx_id |
          2  |   269.0648   117.7774     2.28   0.022     38.22535    499.9043
          3  |  -370.4242   236.0113    -1.57   0.117    -832.9978    92.14935
          4  |  -381.9207   241.8377    -1.58   0.114     -855.914    92.07256
          5  |   216.7598   183.4746     1.18   0.237    -142.8438    576.3634
          6  |  -5.505924   232.0979    -0.02   0.981    -460.4095    449.3977
          7  |   831.7008   166.3474     5.00   0.000     505.6658    1157.736
          8  |  -125.9098   145.3388    -0.87   0.386    -410.7686     158.949
          9  |    90.6615   87.56127     1.04   0.300    -80.95543    262.2784
         10  |   3.379098   68.57719     0.05   0.961    -131.0297    137.7879
         11  |   1344.875   100.5449    13.38   0.000      1147.81    1541.939
         12  |   1660.124   113.0853    14.68   0.000     1438.481    1881.767
         13  |   815.3481   149.2347     5.46   0.000     522.8535    1107.843
         14  |   428.9553    112.013     3.83   0.000     209.4139    648.4968
         15  |    1614.22   69.75835    23.14   0.000     1477.496    1750.944
         16  |   2076.815   102.8923    20.18   0.000      1875.15     2278.48
         17  |   237.6968     43.901     5.41   0.000     151.6524    323.7412
         18  |   132.0329   59.28216     2.23   0.026     15.84197    248.2238
         19  |   158.5969   80.33492     1.97   0.048     1.143298    316.0504
         20  |   870.0093   112.3763     7.74   0.000     649.7557    1090.263
         21  |   983.9017    153.529     6.41   0.000     682.9904    1284.813
         22  |   29.56723   44.72944     0.66   0.509    -58.10086    117.2353
         23  |  -399.8923   253.6389    -1.58   0.115    -897.0153    97.23084
         24  |   482.5852   108.5419     4.45   0.000     269.8471    695.3233
         25  |    373.849   83.55366     4.47   0.000     210.0869    537.6112
         26  |   25.27343   88.80404     0.28   0.776    -148.7793    199.3262
         27  |  -324.3152   232.2406    -1.40   0.163    -779.4984     130.868
         28  |   275.8353   68.26739     4.04   0.000     142.0337     409.637
         29  |  -74.16568    143.293    -0.52   0.605    -355.0148    206.6834
         30  |    853.724   143.2715     5.96   0.000     572.9169    1134.531
         31  |  -74.67039    124.524    -0.60   0.549    -318.7329    169.3921
         32  |    215.361   60.06875     3.59   0.000     97.62838    333.0935
             |
       _cons |   473.7019   358.5499     1.32   0.186    -229.0429    1176.447
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.763
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.549
                         (Kleibergen-Paap rk Wald F statistic):         24.968
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw emig ann_pr_mx avg_tmp_mx ib
> (first).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   918.8498   173.5899     5.29   0.000      577.655    1260.045
  active_exp |  -2683.098   607.1725    -4.42   0.000    -3876.509   -1489.687
cons_exp_raw |  -1289.089   2028.994    -0.64   0.526    -5277.121    2698.944
        emig |  -.0061713   .0134876    -0.46   0.648    -.0326815    .0203388
   ann_pr_mx |   .6254887   .4951414     1.26   0.207    -.3477228      1.5987
  avg_tmp_mx |  -452.4542   231.1765    -1.96   0.051    -906.8367    1.928237
             |
          yr |
       2004  |     405.53   611.0263     0.66   0.507    -795.4557    1606.516
       2005  |   510.6645   631.9653     0.81   0.420    -731.4773    1752.806
       2006  |   1233.785   629.2242     1.96   0.051    -2.968594    2470.539
       2007  |   2964.862   579.4994     5.12   0.000     1825.843    4103.881
       2008  |    4970.15   646.3013     7.69   0.000     3699.831    6240.469
       2009  |   6608.921   768.6165     8.60   0.000     5098.188    8119.654
       2010  |    8089.13   920.3396     8.79   0.000     6280.182    9898.078
       2011  |   10671.63    1242.07     8.59   0.000     8230.319    13112.95
       2012  |   10632.79   1302.646     8.16   0.000     8072.409    13193.17
       2013  |     8533.9    1204.02     7.09   0.000     6167.372    10900.43
       2014  |   6565.404    1184.78     5.54   0.000     4236.692    8894.116
       2015  |   5735.173    1195.17     4.80   0.000      3386.04    8084.307
       2016  |   6336.128   1204.944     5.26   0.000     3967.784    8704.472
       2017  |  -1348.184    3018.02    -0.45   0.655     -7280.17    4583.802
             |
       mx_id |
          2  |  -10282.98   962.4794   -10.68   0.000    -12174.76   -8391.208
          3  |  -10775.83    3604.47    -2.99   0.003    -17860.49   -3691.162
          4  |  -9907.864   4027.906    -2.46   0.014     -17824.8   -1990.925
          5  |  -7124.889   2977.189    -2.39   0.017    -12976.62   -1273.158
          6  |  -12095.92   3419.946    -3.54   0.000     -18817.9   -5373.941
          7  |  -13839.88   2505.779    -5.52   0.000    -18765.05   -8914.722
          8  |  -5549.488   2229.937    -2.49   0.013    -9932.478   -1166.498
          9  |  -4926.393   1956.336    -2.52   0.012    -8771.615   -1081.171
         10  |  -177.5379   1163.346    -0.15   0.879    -2464.121    2109.045
         11  |  -7341.598   1055.153    -6.96   0.000    -9415.525   -5267.671
         12  |   7095.051   2175.649     3.26   0.001     2818.766    11371.34
         13  |  -4480.389    2549.42    -1.76   0.080    -9491.331    530.5522
         14  |  -7438.831   1517.733    -4.90   0.000    -10421.97   -4455.693
         15  |  -2807.914   985.4758    -2.85   0.005    -4744.889   -870.9397
         16  |   115.5339   1891.896     0.06   0.951    -3603.029    3834.097
         17  |  -1210.332   1210.161    -1.00   0.318     -3588.93    1168.265
         18  |  -685.9136   1402.147    -0.49   0.625    -3441.865    2070.037
         19  |  -5066.729   1169.457    -4.33   0.000    -7365.323   -2768.135
         20  |  -3785.147   1751.984    -2.16   0.031     -7228.71   -341.5849
         21  |  -8440.895   1962.436    -4.30   0.000    -12298.11   -4583.684
         22  |   641.9177   1103.544     0.58   0.561    -1527.122    2810.958
         23  |  -8953.376   4259.899    -2.10   0.036     -17326.3   -580.4508
         24  |     2031.8   1875.124     1.08   0.279    -1653.797    5717.397
         25  |  -5350.497   1660.147    -3.22   0.001    -8613.553    -2087.44
         26  |  -4654.673    1574.34    -2.96   0.003    -7749.073   -1560.273
         27  |  -8865.541   3938.077    -2.25   0.025    -16605.92   -1125.163
         28  |  -4107.859   1294.518    -3.17   0.002    -6652.262   -1563.456
         29  |   -10428.2     1964.1    -5.31   0.000    -14288.68   -6567.719
         30  |  -4373.089   2352.072    -1.86   0.064    -8996.138    249.9611
         31  |  -7118.753   2406.423    -2.96   0.003    -11848.63   -2388.875
         32  |   69.55302   1081.466     0.06   0.949    -2056.092    2195.198
             |
       _cons |   19753.18   6559.548     3.01   0.003     6860.248    32646.12
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    28.02
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    28.02
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      28.02    0.0000 |       31.42   0.0000 |       28.02

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=24.27    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      38.18
Kleibergen-Paap Wald rk F statistic                                28.02

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=      12.07     P-val=0.0006
Anderson-Rubin Wald test           Chi-sq(1)=     13.53     P-val=0.0002
Stock-Wright LM S statistic        Chi-sq(1)=     17.21     P-val=0.0000

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   151.65
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9550
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9802
Residual SS             =  8150534.854                Root MSE      =    130.3

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0298076   .0089655     3.32   0.001     .0122355    .0473797
  active_exp |  -3.003773   8.729013    -0.34   0.731    -20.11232    14.10478
cons_exp_raw |   -151.499   137.8971    -1.10   0.272    -421.7724    118.7745
        emig |   .0033596   .0007276     4.62   0.000     .0019335    .0047858
   ann_pr_mx |   .0369114   .0327809     1.13   0.260     -.027338    .1011608
  avg_tmp_mx |  -14.82389   14.06343    -1.05   0.292     -42.3877    12.73991
             |
          yr |
       2004  |   123.2505   37.59825     3.28   0.001     49.55933    196.9417
       2005  |   231.5284   38.32522     6.04   0.000     156.4124    306.6445
       2006  |   322.1698   42.78011     7.53   0.000     238.3223    406.0173
       2007  |   279.2417   47.53384     5.87   0.000     186.0771    372.4063
       2008  |    148.575   60.61874     2.45   0.014     29.76441    267.3855
       2009  |   23.02424   70.65056     0.33   0.745    -115.4483    161.4968
       2010  |    18.0107    62.1371     0.29   0.772    -103.7758    139.7972
       2011  |    58.1034   76.49937     0.76   0.448    -91.83261    208.0394
       2012  |   60.91977   74.14189     0.82   0.411    -84.39567    206.2352
       2013  |   109.7367   60.51027     1.81   0.070    -8.861263    228.3346
       2014  |   223.0821   53.28929     4.19   0.000      118.637    327.5272
       2015  |   301.2549   49.34925     6.10   0.000     204.5321    397.9776
       2016  |   348.9488   54.44953     6.41   0.000     242.2297     455.668
       2017  |  -71.34559   166.2668    -0.43   0.668    -397.2225    254.5313
             |
       mx_id |
          2  |   390.6188   121.1385     3.22   0.001     153.1918    628.0459
          3  |  -65.87458   244.6692    -0.27   0.788    -545.4174    413.6682
          4  |  -65.93779   258.0632    -0.26   0.798    -571.7324    439.8568
          5  |   294.8688   193.3481     1.53   0.127    -84.08655    673.8241
          6  |   175.1639   240.1727     0.73   0.466    -295.5658    645.8937
          7  |   859.3498    199.061     4.32   0.000     469.1975    1249.502
          8  |   24.54145   150.3916     0.16   0.870    -270.2208    319.3037
          9  |   244.5968   130.2082     1.88   0.060    -10.60655    499.8002
         10  |   16.92646    72.3881     0.23   0.815    -124.9516    158.8045
         11  |   1315.688   113.4824    11.59   0.000     1093.267    1538.109
         12  |   1405.766   129.2502    10.88   0.000      1152.44    1659.091
         13  |   975.4229    167.173     5.83   0.000     647.7698    1303.076
         14  |   472.0269   119.7753     3.94   0.000     237.2717    706.7822
         15  |    1575.78   88.30601    17.84   0.000     1402.703    1748.856
         16  |   1961.738   135.1808    14.51   0.000     1696.788    2226.687
         17  |   313.7808    71.1211     4.41   0.000      174.386    453.1755
         18  |   146.8394   85.58491     1.72   0.086    -20.90392    314.5828
         19  |   273.3303   88.30049     3.10   0.002     100.2645    446.3961
         20  |   926.3198   119.4634     7.75   0.000     692.1758    1160.464
         21  |    1079.13   154.9628     6.96   0.000      775.408    1382.851
         22  |  -28.68099    61.5327    -0.47   0.641    -149.2829    91.92089
         23  |   -75.9297   271.6712    -0.28   0.780    -608.3955    456.5361
         24  |    409.703   119.0369     3.44   0.001      176.395    643.0111
         25  |   457.6635    113.704     4.03   0.000     234.8077    680.5193
         26  |   112.1955   103.7056     1.08   0.279    -91.06365    315.4547
         27  |  -40.79018   251.2165    -0.16   0.871    -533.1655    451.5851
         28  |   392.0986   88.54478     4.43   0.000      218.554    565.6431
         29  |   31.84617   153.9969     0.21   0.836    -269.9823    333.6746
         30  |   950.6891   161.0555     5.90   0.000     635.0262    1266.352
         31  |    160.446   157.8123     1.02   0.309    -148.8605    469.7525
         32  |   204.3723   64.89051     3.15   0.002     77.18927    331.5554
             |
       _cons |   408.1985   459.8527     0.89   0.375    -493.0962    1309.493
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             24.271
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               38.177
                         (Kleibergen-Paap rk Wald F statistic):         28.018
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw emig ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 ib(first).yr 
> ib(first).mx_id, robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   887.1527   176.2034     5.03   0.000     540.8279    1233.478
  active_exp_w1 |  -2573.898   595.6586    -4.32   0.000    -3744.655   -1403.141
cons_exp_raw_w1 |  -1558.945   1950.592    -0.80   0.425      -5392.8     2274.91
                |
             yr |
          2004  |   440.5596   571.2436     0.77   0.441    -682.2101    1563.329
          2005  |   195.8562   577.1186     0.34   0.734    -938.4608    1330.173
          2006  |   891.1221   524.3368     1.70   0.090    -139.4531    1921.697
          2007  |   2657.185   455.1964     5.84   0.000     1762.504    3551.865
          2008  |   4693.706   558.9998     8.40   0.000     3595.002    5792.411
          2009  |   6041.242   637.2722     9.48   0.000     4788.694     7293.79
          2010  |   7880.972   862.1986     9.14   0.000     6186.335    9575.609
          2011  |   9916.314   1137.255     8.72   0.000     7681.057    12151.57
          2012  |   10004.74   1210.734     8.26   0.000      7625.06    12384.41
          2013  |   8187.085   1165.977     7.02   0.000     5895.376    10478.79
          2014  |    6222.96   1149.828     5.41   0.000     3962.992    8482.928
          2015  |    5247.46   1150.467     4.56   0.000     2986.236    7508.684
          2016  |   5738.617   1169.792     4.91   0.000     3439.411    8037.823
          2017  |   2459.517   1320.092     1.86   0.063    -135.1012    5054.135
                |
          mx_id |
             2  |  -10486.67   942.4716   -11.13   0.000    -12339.09   -8634.261
             3  |     -13405   3215.509    -4.17   0.000    -19725.03   -7084.966
             4  |  -13366.86   3375.425    -3.96   0.000     -20001.2   -6732.514
             5  |  -9637.218   2514.926    -3.83   0.000    -14580.26   -4694.172
             6  |  -11979.99   3274.852    -3.66   0.000    -18416.66   -5543.322
             7  |  -11381.65   2044.113    -5.57   0.000    -15399.32   -7363.982
             8  |  -7043.175   2045.082    -3.44   0.001    -11062.75     -3023.6
             9  |  -8168.635   788.8583   -10.36   0.000    -9719.123   -6618.147
            10  |  -83.79627   1165.739    -0.07   0.943    -2375.037    2207.444
            11  |  -6213.532   911.3299    -6.82   0.000    -8004.735   -4422.328
            12  |   6248.554   1894.368     3.30   0.001     2525.206    9971.902
            13  |  -7258.867   2039.225    -3.56   0.000    -11266.93   -3250.805
            14  |  -6775.103   1455.303    -4.66   0.000    -9635.476   -3914.729
            15  |      -3917   673.3212    -5.82   0.000    -5240.402   -2593.599
            16  |  -1519.052   1432.738    -1.06   0.290    -4335.076    1296.971
            17  |  -2798.121   735.4159    -3.80   0.000    -4243.568   -1352.673
            18  |  -1947.064   1058.939    -1.84   0.067    -4028.392    134.2638
            19  |  -6645.491    802.761    -8.28   0.000    -8223.305   -5067.678
            20  |  -5328.359   1471.864    -3.62   0.000    -8221.283   -2435.435
            21  |  -8964.147   1885.156    -4.76   0.000    -12669.39   -5258.904
            22  |   1621.074   1062.492     1.53   0.128    -467.2359    3709.384
            23  |   -12567.2   3564.664    -3.53   0.000    -19573.49   -5560.914
            24  |   1489.949   1809.918     0.82   0.411    -2067.415    5047.313
            25  |  -8020.586   858.7894    -9.34   0.000    -9708.523    -6332.65
            26  |  -6585.452   1278.337    -5.15   0.000    -9098.002   -4072.901
            27  |   -12099.8   3217.876    -3.76   0.000    -18424.48   -5775.116
            28  |  -6086.218   657.9017    -9.25   0.000    -7379.312   -4793.123
            29  |  -9633.654   1841.884    -5.23   0.000    -13253.85   -6013.462
            30  |  -6622.536   1804.448    -3.67   0.000    -10169.15   -3075.923
            31  |  -10743.45   1241.239    -8.66   0.000    -13183.09   -8303.819
            32  |   246.3765   1097.115     0.22   0.822    -1909.985    2402.738
                |
          _cons |   12851.12   5067.647     2.54   0.012     2890.741    22811.49
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      25.35    0.0000 |       28.23   0.0000 |       25.35

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.84    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      38.01
Kleibergen-Paap Wald rk F statistic                                25.35

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       6.04     P-val=0.0144
Anderson-Rubin Wald test           Chi-sq(1)=      6.73     P-val=0.0095
Stock-Wright LM S statistic        Chi-sq(1)=      7.70     P-val=0.0055

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   160.86
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9553
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9803
Residual SS             =  8063792.857                Root MSE      =    129.6

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0234206   .0092827     2.52   0.012     .0052268    .0416143
  active_exp_w1 |  -12.14032   8.289821    -1.46   0.143    -28.38807    4.107433
cons_exp_raw_w1 |  -202.5076   133.6345    -1.52   0.130    -464.4265    59.41131
                |
             yr |
          2004  |   116.6623   34.58346     3.37   0.001     48.87992    184.4446
          2005  |   227.0768    34.2115     6.64   0.000     160.0235    294.1302
          2006  |   331.9985   41.46352     8.01   0.000     250.7315    413.2655
          2007  |   306.0108    47.8531     6.39   0.000     212.2204    399.8011
          2008  |   170.1352   59.21888     2.87   0.004     54.06837    286.2021
          2009  |   30.72896   64.78599     0.47   0.635    -96.24926    157.7072
          2010  |   50.98999   61.38214     0.83   0.406     -69.3168    171.2968
          2011  |   80.48503   71.59176     1.12   0.261    -59.83224    220.8023
          2012  |   84.76992   69.99087     1.21   0.226    -52.40967    221.9495
          2013  |   128.2083    58.5876     2.19   0.029     13.37869    243.0379
          2014  |   216.2258   49.95952     4.33   0.000      118.307    314.1447
          2015  |   274.2695   43.59511     6.29   0.000     188.8247    359.7144
          2016  |   304.1561   49.35966     6.16   0.000     207.4129    400.8992
          2017  |  -.5697438   57.78139    -0.01   0.992    -113.8192    112.6797
                |
          mx_id |
             2  |   285.2412   121.9809     2.34   0.019     46.16304    524.3194
             3  |  -325.8155   234.5618    -1.39   0.165    -785.5481    133.9172
             4  |  -337.2788   239.6959    -1.41   0.159    -807.0742    132.5166
             5  |   250.5044   182.1199     1.38   0.169    -106.4441    607.4529
             6  |   37.45879   229.7628     0.16   0.870     -412.868    487.7856
             7  |   861.8722   167.2592     5.15   0.000     534.0502    1189.694
             8  |  -99.63742   144.0131    -0.69   0.489     -381.898    182.6231
             9  |   94.90618   90.79247     1.05   0.296    -83.04378    272.8561
            10  |   12.24033   67.94227     0.18   0.857    -120.9241    145.4047
            11  |    1357.92   101.4936    13.38   0.000     1158.996    1556.844
            12  |   1656.181    111.055    14.91   0.000     1438.518    1873.845
            13  |   842.2324   148.0972     5.69   0.000     551.9672    1132.498
            14  |   448.9505     112.01     4.01   0.000      229.415     668.486
            15  |   1617.144   71.15833    22.73   0.000     1477.676    1756.612
            16  |   2051.193   94.76226    21.65   0.000     1865.462    2236.924
            17  |   243.4402   44.64464     5.45   0.000     155.9383    330.9421
            18  |   127.4001   59.36614     2.15   0.032     11.04461    243.7556
            19  |   169.5783   82.13253     2.06   0.039     8.601539    330.5551
            20  |    889.344   111.8551     7.95   0.000      670.112    1108.576
            21  |   1010.957   153.6979     6.58   0.000     709.7143    1312.199
            22  |   29.20556   45.69946     0.64   0.523    -60.36373    118.7749
            23  |  -352.4198   250.4646    -1.41   0.159    -843.3214    138.4818
            24  |    464.261   106.8964     4.34   0.000      254.748    673.7741
            25  |   378.2954   86.84125     4.36   0.000     208.0897    548.5011
            26  |   40.39396   90.03337     0.45   0.654    -136.0682    216.8561
            27  |  -281.4458   229.9243    -1.22   0.221    -732.0892    169.1975
            28  |   283.5877   70.25725     4.04   0.000      145.886    421.2894
            29  |  -47.75612   143.7097    -0.33   0.740     -329.422    233.9098
            30  |    877.032   142.4534     6.16   0.000     597.8284    1156.236
            31  |  -53.31466   127.7502    -0.42   0.676    -303.7005    197.0712
            32  |   222.4043   59.74402     3.72   0.000     105.3082    339.5004
                |
          _cons |   408.6898   352.4374     1.16   0.246    -282.0749    1099.455
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.839
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               38.006
                         (Kleibergen-Paap rk Wald F statistic):         25.349
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 emig ann_pr_m
> x avg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   879.1434   165.9364     5.30   0.000     552.9917    1205.295
  active_exp_w1 |  -2555.177   581.6373    -4.39   0.000    -3698.398   -1411.956
cons_exp_raw_w1 |  -1161.702   1978.249    -0.59   0.557    -5049.995    2726.591
           emig |  -.0033307   .0124019    -0.27   0.788    -.0277068    .0210455
      ann_pr_mx |   .6516787   .4890901     1.33   0.183    -.3096387    1.612996
     avg_tmp_mx |  -455.1587    228.048    -2.00   0.047    -903.3922   -6.925222
                |
             yr |
          2004  |   405.1492   601.9996     0.67   0.501    -778.0943    1588.393
          2005  |   503.1519   624.4326     0.81   0.421    -724.1842    1730.488
          2006  |   1216.971   618.0663     1.97   0.050     2.147563    2431.793
          2007  |   2944.167   566.6209     5.20   0.000     1830.461    4057.873
          2008  |   4988.139   636.9966     7.83   0.000     3736.108     6240.17
          2009  |    6623.81   760.2875     8.71   0.000     5129.448    8118.172
          2010  |   8012.526    906.947     8.83   0.000     6229.901     9795.15
          2011  |   10410.23   1177.117     8.84   0.000     8096.578    12723.88
          2012  |    10405.6   1254.518     8.29   0.000     7939.818    12871.38
          2013  |   8405.524    1185.92     7.09   0.000     6074.572    10736.48
          2014  |   6447.479   1164.368     5.54   0.000     4158.887    8736.071
          2015  |    5625.87   1171.738     4.80   0.000     3322.794    7928.947
          2016  |   6216.589   1180.623     5.27   0.000     3896.049     8537.13
          2017  |  -1472.269   2973.311    -0.50   0.621    -7316.377    4371.838
                |
          mx_id |
             2  |  -10271.29   959.0211   -10.71   0.000    -12156.27   -8386.317
             3  |  -10560.74   3513.227    -3.01   0.003    -17466.07   -3655.417
             4  |  -9681.974   3917.548    -2.47   0.014       -17382   -1981.947
             5  |  -7120.721   2921.546    -2.44   0.015    -12863.08   -1378.358
             6  |  -11902.19   3351.209    -3.55   0.000    -18489.06   -5315.315
             7  |  -13806.14   2487.143    -5.55   0.000    -18694.68   -8917.607
             8  |  -5447.019   2180.255    -2.50   0.013    -9732.358    -1161.68
             9  |  -4937.604   1941.805    -2.54   0.011    -8754.264   -1120.944
            10  |  -152.6543   1157.462    -0.13   0.895    -2427.672    2122.363
            11  |  -7375.996   1052.923    -7.01   0.000     -9445.54   -5306.452
            12  |   6363.432   1959.267     3.25   0.001     2512.449    10214.41
            13  |  -4414.107   2492.185    -1.77   0.077    -9312.552    484.3371
            14  |  -7406.172   1501.164    -4.93   0.000    -10356.74   -4455.601
            15  |  -2899.356   979.7086    -2.96   0.003    -4824.995    -973.717
            16  |   -17.8414   1863.983    -0.01   0.992    -3681.541    3645.858
            17  |  -1202.508   1204.348    -1.00   0.319     -3569.68    1164.665
            18  |  -721.7578   1401.665    -0.51   0.607    -3476.761    2033.246
            19  |  -5029.008   1155.175    -4.35   0.000    -7299.529   -2758.487
            20  |  -3794.541   1722.774    -2.20   0.028    -7180.692   -408.3896
            21  |  -8411.939   1926.593    -4.37   0.000     -12198.7   -4625.179
            22  |    626.406   1111.478     0.56   0.573    -1558.228     2811.04
            23  |  -8712.781   4127.321    -2.11   0.035    -16825.12   -600.4406
            24  |   1999.428   1856.859     1.08   0.282    -1650.269    5649.125
            25  |  -5396.078   1648.465    -3.27   0.001    -8636.173   -2155.983
            26  |   -4652.97   1548.436    -3.00   0.003    -7696.454   -1609.485
            27  |  -8674.865   3828.883    -2.27   0.024    -16200.62    -1149.11
            28  |  -4079.977   1282.089    -3.18   0.002     -6599.95   -1560.003
            29  |   -10357.3   1930.899    -5.36   0.000    -14152.53   -6562.078
            30  |  -4348.133   2305.211    -1.89   0.060    -8879.076    182.8093
            31  |  -7084.955   2358.451    -3.00   0.003    -11720.54   -2449.368
            32  |   77.71594   1082.455     0.07   0.943    -2049.874    2205.305
                |
          _cons |   19443.75   6478.832     3.00   0.003     6709.463    32178.04
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    28.07
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    28.07
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      28.07    0.0000 |       31.48   0.0000 |       28.07

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=24.03    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      37.17
Kleibergen-Paap Wald rk F statistic                                28.07

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=      11.98     P-val=0.0006
Anderson-Rubin Wald test           Chi-sq(1)=     13.44     P-val=0.0002
Stock-Wright LM S statistic        Chi-sq(1)=     17.29     P-val=0.0000

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   153.79
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9552
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9803
Residual SS             =  8074773.101                Root MSE      =    129.7

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0311318   .0094202     3.30   0.001     .0126686     .049595
  active_exp_w1 |  -3.383943    8.82128    -0.38   0.701    -20.67333    13.90545
cons_exp_raw_w1 |   -132.793   133.0456    -1.00   0.318    -393.5577    127.9716
           emig |   .0033864   .0006981     4.85   0.000     .0020182    .0047546
      ann_pr_mx |   .0371303   .0326455     1.14   0.255    -.0268537    .1011143
     avg_tmp_mx |  -14.18624   14.28547    -0.99   0.321    -42.18524    13.81276
                |
             yr |
          2004  |   121.1795    37.7822     3.21   0.001     47.12776    195.2313
          2005  |   229.1438    38.4918     5.95   0.000     153.7013    304.5864
          2006  |   318.8965   42.90938     7.43   0.000     234.7957    402.9974
          2007  |   273.6536   47.93179     5.71   0.000      179.709    367.5981
          2008  |   144.7446   62.30993     2.32   0.020     22.61935    266.8698
          2009  |   17.80636   73.31763     0.24   0.808    -125.8936    161.5063
          2010  |   13.76903   64.21446     0.21   0.830     -112.089    139.6271
          2011  |   57.02582   78.11713     0.73   0.465    -96.08094    210.1326
          2012  |   58.05163   76.09985     0.76   0.446    -91.10134    207.2046
          2013  |   106.2725   62.04475     1.71   0.087    -15.33296     227.878
          2014  |   222.2944   53.66999     4.14   0.000     117.1032    327.4857
          2015  |   301.3214   49.23388     6.12   0.000     204.8247     397.818
          2016  |   345.3519    54.9059     6.29   0.000     237.7383    452.9654
          2017  |  -56.81225   168.0814    -0.34   0.735    -386.2457    272.6211
                |
          mx_id |
             2  |   410.9585   124.7286     3.29   0.001     166.4949    655.4221
             3  |  -24.56059   238.5827    -0.10   0.918    -492.1741    443.0529
             4  |  -27.41832   252.2375    -0.11   0.913    -521.7947    466.9581
             5  |   322.7305   191.3959     1.69   0.092    -52.39849    697.8595
             6  |   217.4085   234.8957     0.93   0.355    -242.9786    677.7956
             7  |   893.9455   201.2422     4.44   0.000     499.5181    1288.373
             8  |   48.23469   146.8589     0.33   0.743    -239.6034    336.0728
             9  |   248.2976   132.4042     1.88   0.061    -11.20973     507.805
            10  |   24.31805   71.62449     0.34   0.734    -116.0634    164.6995
            11  |   1330.982   115.4772    11.53   0.000     1104.651    1557.313
            12  |   1403.358   124.8281    11.24   0.000       1158.7    1648.017
            13  |   997.3929   164.6022     6.06   0.000     674.7784    1320.007
            14  |   493.2208   119.6152     4.12   0.000     258.7794    727.6623
            15  |   1578.338    89.4474    17.65   0.000     1403.024    1753.651
            16  |   1935.185   124.3719    15.56   0.000     1691.421     2178.95
            17  |   317.6453   71.74913     4.43   0.000     177.0196     458.271
            18  |   141.6535   85.85432     1.65   0.099    -26.61791    309.9248
            19  |   283.9813   89.15535     3.19   0.001     109.2401    458.7226
            20  |   942.3779   118.5616     7.95   0.000     710.0014    1174.754
            21  |   1105.488   154.1764     7.17   0.000     803.3076    1407.668
            22  |  -28.99043   62.71503    -0.46   0.644    -151.9096    93.92876
            23  |  -36.04852   264.5774    -0.14   0.892    -554.6107    482.5137
            24  |   391.8398   116.2921     3.37   0.001     163.9114    619.7682
            25  |   462.0536   115.9032     3.99   0.000     234.8875    689.2197
            26  |   125.9178   104.0986     1.21   0.226    -78.11164    329.9473
            27  |  -4.767466   246.0188    -0.02   0.985    -486.9555    477.4206
            28  |   398.9919   89.74575     4.45   0.000     223.0935    574.8903
            29  |   60.23864   153.5972     0.39   0.695    -240.8063    361.2836
            30  |   968.9853   159.8322     6.06   0.000     655.7198    1282.251
            31  |    179.348   158.8546     1.13   0.259    -132.0014    490.6973
            32  |   210.1632   64.73091     3.25   0.001     83.29297    337.0335
                |
          _cons |   336.5438   454.2235     0.74   0.459     -553.718    1226.806
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             24.033
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               37.172
                         (Kleibergen-Paap rk Wald F statistic):         28.070
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 emig ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Set notes in \scriptsize. Next, move final eight lines of firs
> t table to end of second table. Delete \midrule between the the tables. Penultimately, consolidate not
> es by moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which
>  should sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleibergen-Paa
> p F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_emig.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}
> ", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0
> .5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" emig
>  "\hspace{0.5cm} Emigration" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} 
> Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2}" "\textit{
> 3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0) pref
> ix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deportations 
> on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 dpt_tot_prop 
> active_exp_w1 active_exp cons_exp_raw_w1 cons_exp_raw) stats(N F Fp widstat, fmt(0 3 3 3) label(Observ
> ations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust standard errors
>  in parentheses. All models contain state and year fixed effects.") collabels(none) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_emig.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_emig.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_e
> mig.tex", append refcat(sc_cons_raw "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 
> 0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_raw "\hspace{0.5cm} Policy $\times$ Partisanship" act
> ive_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" emig "\hspace{0.5cm} Emigra
> tion" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} Temperature (ºC)" _con
> s "\hspace{0.5cm} Constant") nonumber rename(sc_cons_raw_w1 sc_cons_raw active_exp_w1 active_exp cons_
> exp_raw_w1 cons_exp_raw) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_emig.tex)

. 
. 
. 
. /***** Repeat instrumental variable analysis with pre-treatment and lagged vote shares *****/
. /** Vote shares from 2000 **/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. tsset mx_id yr

Panel variable: mx_id (strongly balanced)
 Time variable: yr, 2003 to 2017
         Delta: 1 unit

. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_2000) active_exp cons_exp_2000 ib(first).yr ib(first).mx_
> id, robust first savefirst savefprefix(est1_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_2000 |   678.1226   187.0993     3.62   0.000     310.3845    1045.861
   active_exp |  -2017.671    662.792    -3.04   0.002     -3320.37   -714.9731
cons_exp_2000 |  -2213.382   2259.668    -0.98   0.328    -6654.693    2227.929
              |
           yr |
        2004  |   263.4063   575.8345     0.46   0.648    -868.3795    1395.192
        2005  |   17.15623   581.6979     0.03   0.976    -1126.154    1160.466
        2006  |   713.9688   522.3662     1.37   0.172    -312.7265    1740.664
        2007  |   2480.031   433.4855     5.72   0.000     1628.028    3332.034
        2008  |   4904.734   507.9156     9.66   0.000     3906.441    5903.027
        2009  |   6161.647   616.4735     9.99   0.000     4949.987    7373.308
        2010  |   7500.431   942.5183     7.96   0.000     5647.939    9352.923
        2011  |   9447.136   1298.273     7.28   0.000     6895.419    11998.85
        2012  |   9508.942   1372.873     6.93   0.000     6810.601    12207.28
        2013  |   7546.117   1289.037     5.85   0.000     5012.553    10079.68
        2014  |   5581.992    1274.78     4.38   0.000      3076.45    8087.534
        2015  |   4606.492   1273.123     3.62   0.000     2104.207    7108.778
        2016  |   4630.461   1267.968     3.65   0.000     2138.306    7122.615
        2017  |   1346.992   1429.757     0.94   0.347    -1463.153    4157.137
              |
        mx_id |
           2  |  -10992.12   721.5053   -15.23   0.000    -12410.22   -9574.023
           3  |  -14505.29   3144.151    -4.61   0.000    -20685.03   -8325.556
           4  |  -14384.25   3394.343    -4.24   0.000    -21055.73   -7712.771
           5  |  -10531.11   2434.819    -4.33   0.000    -15316.67   -5745.546
           6  |  -12989.69   3263.482    -3.98   0.000    -19403.97   -6575.416
           7  |  -12144.63   1904.295    -6.38   0.000    -15887.46    -8401.79
           8  |  -7700.067   1848.543    -4.17   0.000    -11333.32    -4066.81
           9  |  -8294.277   1115.687    -7.43   0.000    -10487.13   -6101.428
          10  |  -387.0715   922.1618    -0.42   0.675    -2199.553     1425.41
          11  |  -6502.929   633.1668   -10.27   0.000      -7747.4   -5258.459
          12  |   7380.628    2231.48     3.31   0.001     2994.721    11766.54
          13  |  -8020.627    1916.24    -4.19   0.000    -11786.94   -4254.314
          14  |  -7277.764   1240.388    -5.87   0.000     -9715.71   -4839.818
          15  |  -4022.528   815.7669    -4.93   0.000    -5625.894   -2419.162
          16  |  -1171.882   1852.331    -0.63   0.527    -4812.584    2468.819
          17  |  -2954.176   566.4582    -5.22   0.000    -4067.533   -1840.819
          18  |  -1794.728   1371.657    -1.31   0.191     -4490.68    901.2235
          19  |  -6758.834   531.6586   -12.71   0.000    -7803.793   -5713.875
          20  |  -5903.492   1239.973    -4.76   0.000    -8340.622   -3466.362
          21  |  -9753.129   1761.989    -5.54   0.000    -13216.27   -6289.991
          22  |   1619.399   1005.076     1.61   0.108    -356.0475    3594.846
          23  |   -13701.2   3691.101    -3.71   0.000    -20955.95   -6446.451
          24  |   2379.665   2195.971     1.08   0.279    -1936.451     6695.78
          25  |  -8024.761   989.3114    -8.11   0.000    -9969.224   -6080.299
          26  |  -6965.448   1070.333    -6.51   0.000    -9069.156   -4861.741
          27  |  -13160.87   3319.713    -3.96   0.000    -19685.67   -6636.068
          28  |  -6094.673    479.274   -12.72   0.000    -7036.672   -5152.674
          29  |  -10334.91   1737.503    -5.95   0.000    -13749.92   -6919.901
          30  |  -7219.366   1634.871    -4.42   0.000    -10432.66   -4006.074
          31  |  -11367.16   940.2351   -12.09   0.000    -13215.17   -9519.156
          32  |          0  (omitted)
              |
        _cons |   14561.59   5445.443     2.67   0.008      3858.73    25264.45
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    13.14
  Prob > F      =   0.0003
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    13.14
  Prob > F      =   0.0003



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      13.14    0.0003 |       14.60   0.0001 |       13.14

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=13.01    P-val=0.0003

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      20.51
Kleibergen-Paap Wald rk F statistic                                13.14

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.96     P-val=0.0086
Anderson-Rubin Wald test           Chi-sq(1)=      7.74     P-val=0.0054
Stock-Wright LM S statistic        Chi-sq(1)=      9.37     P-val=0.0022

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   142.44
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9477
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9769
Residual SS             =   9476470.81                Root MSE      =    140.5

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |   .0351595   .0142788     2.46   0.014     .0071736    .0631453
   active_exp |  -6.849644   9.046972    -0.76   0.449    -24.58138    10.88209
cons_exp_2000 |  -751.3468   114.6827    -6.55   0.000    -976.1207   -526.5728
              |
           yr |
        2004  |   90.52197   33.79072     2.68   0.007     24.29337    156.7506
        2005  |   204.0713    33.2306     6.14   0.000     138.9405    269.2021
        2006  |   300.7769   41.60548     7.23   0.000     219.2317    382.3221
        2007  |   254.0576   53.18399     4.78   0.000     149.8189    358.2963
        2008  |   141.3049   77.10748     1.83   0.067    -9.823029    292.4327
        2009  |  -12.73174   90.20547    -0.14   0.888    -189.5312    164.0677
        2010  |  -8.265039   86.64941    -0.10   0.924    -178.0948    161.5647
        2011  |  -4.677808   104.1346    -0.04   0.964    -208.7779    199.4223
        2012  |  -8.253867   101.0482    -0.08   0.935    -206.3048    189.7971
        2013  |   60.93977   77.40263     0.79   0.431    -90.76661    212.6461
        2014  |    172.014   58.76125     2.93   0.003     56.84406    287.1839
        2015  |   241.8586    49.6117     4.88   0.000     144.6214    339.0957
        2016  |   310.0317   51.50633     6.02   0.000     209.0812    410.9823
        2017  |   36.93297   59.71715     0.62   0.536    -80.11049    153.9764
              |
        mx_id |
           2  |   294.9518   173.2391     1.70   0.089    -44.59067    634.4942
           3  |  -1019.409   246.5255    -4.14   0.000     -1502.59   -536.2279
           4  |  -1109.942   245.5895    -4.52   0.000    -1591.289   -628.5955
           5  |    -329.59   186.0888    -1.77   0.077    -694.3174    35.13738
           6  |  -717.8914   227.7646    -3.15   0.002    -1164.302   -271.4811
           7  |   452.8545   198.7736     2.28   0.023     63.26544    842.4435
           8  |  -555.1875    134.875    -4.12   0.000    -819.5376   -290.8373
           9  |   346.3609   133.8329     2.59   0.010     84.05329    608.6685
          10  |  -225.4413    41.3533    -5.45   0.000    -306.4923   -144.3903
          11  |   1216.594   114.9788    10.58   0.000     991.2401    1441.949
          12  |   1821.771   154.1187    11.82   0.000     1519.704    2123.838
          13  |   364.8873   144.1845     2.53   0.011     82.29085    647.4837
          14  |   139.2727   118.7856     1.17   0.241    -93.54283    372.0882
          15  |   1727.558   92.03685    18.77   0.000     1547.169    1907.947
          16  |   2404.331   113.1037    21.26   0.000     2182.652     2626.01
          17  |   180.0444   50.57811     3.56   0.000     80.91307    279.1756
          18  |   345.9654   77.36916     4.47   0.000     194.3246    497.6062
          19  |   85.29668   103.8111     0.82   0.411    -118.1693    288.7626
          20  |   568.5125   108.2316     5.25   0.000     356.3824    780.6425
          21  |   600.6119   170.1368     3.53   0.000     267.1498     934.074
          22  |  -45.72671   53.83253    -0.85   0.396    -151.2365     59.7831
          23  |  -1217.945   247.7078    -4.92   0.000    -1703.443   -732.4464
          24  |   825.2488   119.8599     6.89   0.000     590.3277     1060.17
          25  |   545.6665   127.1289     4.29   0.000     296.4984    794.8346
          26  |    -192.54   112.7257    -1.71   0.088    -413.4784    28.39838
          27  |  -1057.269   233.1022    -4.54   0.000    -1514.141   -600.3973
          28  |   278.5003   93.65014     2.97   0.003     94.94944    462.0512
          29  |  -445.1723   166.9778    -2.67   0.008    -772.4428   -117.9018
          30  |    464.734   136.5587     3.40   0.001     197.0838    732.3842
          31  |  -158.8031   172.2924    -0.92   0.357    -496.4901    178.8839
          32  |          0  (omitted)
              |
        _cons |   1714.751   318.5773     5.38   0.000     1090.351    2339.151
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             13.013
                                                   Chi-sq(1) P-val =    0.0003
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               20.510
                         (Kleibergen-Paap rk Wald F statistic):         13.136
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_2000 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id
Excluded instruments: sc_cons_2000
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_2000) active_exp cons_exp_2000 pop ann_pr_mx avg_tmp_mx i
> b(first).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_2000 |   685.1889    190.233     3.60   0.000     311.2842    1059.094
   active_exp |  -2079.912   676.2028    -3.08   0.002    -3408.995   -750.8293
cons_exp_2000 |  -579.5819   2301.902    -0.25   0.801    -5103.991    3944.827
          pop |   1021.884    519.899     1.97   0.050     .0176751     2043.75
    ann_pr_mx |   .6831217   .5044404     1.35   0.176    -.3083606    1.674604
   avg_tmp_mx |  -447.2273   240.0568    -1.86   0.063    -919.0611    24.60654
              |
           yr |
        2004  |   257.0204   612.8271     0.42   0.675    -947.4969    1461.538
        2005  |   301.5552   636.3844     0.47   0.636    -949.2641    1552.375
        2006  |   950.9566   619.0922     1.54   0.125    -265.8748    2167.788
        2007  |   2616.661      546.8     4.79   0.000      1541.92    3691.401
        2008  |   4902.729   591.9791     8.28   0.000     3739.189     6066.27
        2009  |   6423.702   739.6375     8.68   0.000     4969.937    7877.466
        2010  |   7376.234   988.1804     7.46   0.000     5433.956    9318.511
        2011  |   9708.201   1331.769     7.29   0.000     7090.598     12325.8
        2012  |   9672.921    1414.78     6.84   0.000     6892.158    12453.68
        2013  |   7489.122   1309.866     5.72   0.000     4914.569    10063.68
        2014  |   5499.277   1290.997     4.26   0.000     2961.811    8036.742
        2015  |   4641.352   1296.914     3.58   0.000     2092.256    7190.449
        2016  |   4665.835   1294.238     3.61   0.000     2121.997    7209.672
        2017  |  -2963.877     3184.4    -0.93   0.353    -9222.845    3295.091
              |
        mx_id |
           2  |   -12471.9   1167.359   -10.68   0.000    -14766.36   -10177.45
           3  |  -9237.765   3729.533    -2.48   0.014     -16568.2   -1907.334
           4  |  -8398.694   4337.354    -1.94   0.053     -16923.8    126.4159
           5  |  -10355.29   3432.682    -3.02   0.003    -17102.26   -3608.323
           6  |  -13242.66   3375.474    -3.92   0.000    -19877.18   -6608.134
           7  |  -21219.19    4589.15    -4.62   0.000    -30239.21   -12199.17
           8  |  -6541.158   2154.949    -3.04   0.003    -10776.73   -2305.587
           9  |  -4895.069   2149.727    -2.28   0.023    -9120.377   -669.7605
          10  |   -389.623   938.4284    -0.42   0.678    -2234.113    1454.867
          11  |  -21445.97   7262.286    -2.95   0.003    -35720.06   -7171.885
          12  |   2407.671   3303.292     0.73   0.466    -4084.978    8900.321
          13  |  -6221.771   2716.964    -2.29   0.023    -11561.99   -881.5546
          14  |  -8546.979    1396.07    -6.12   0.000    -11290.97   -5802.991
          15  |  -9520.854   3228.528    -2.95   0.003    -15866.56   -3175.152
          16  |  -3738.677   2611.773    -1.43   0.153     -8872.14    1394.787
          17  |  -1766.453   1192.052    -1.48   0.139    -4109.443     576.536
          18  |  -936.2279   1609.161    -0.58   0.561    -4099.048    2226.592
          19  |  -8416.949   1934.505    -4.35   0.000    -12219.24   -4614.662
          20  |  -6259.403   1987.662    -3.15   0.002    -10166.17   -2352.634
          21  |  -12812.07    2811.56    -4.56   0.000    -18338.22   -7285.922
          22  |   64.28407   1138.189     0.06   0.955    -2172.837    2301.405
          23  |  -7912.837   4607.855    -1.72   0.087    -16969.62    1143.945
          24  |   545.3454   2401.643     0.23   0.820    -4175.107    5265.797
          25  |  -7259.698   1809.586    -4.01   0.000    -10816.46    -3702.94
          26  |   -5881.34   1566.701    -3.75   0.000    -8960.704   -2801.975
          27  |  -8870.866   4259.498    -2.08   0.038    -17242.95    -498.785
          28  |  -6057.958   1537.087    -3.94   0.000    -9079.115     -3036.8
          29  |  -9895.289   1758.062    -5.63   0.000    -13350.78   -6439.803
          30  |  -10506.95   3776.946    -2.78   0.006    -17930.57   -3083.327
          31  |  -8039.243   2393.862    -3.36   0.001     -12744.4   -3334.087
          32  |          0  (omitted)
              |
        _cons |   16894.38   6288.121     2.69   0.007     4535.022    29253.74
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    12.97
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    12.97
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      12.97    0.0004 |       14.52   0.0001 |       12.97

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.84    P-val=0.0003

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      21.06
Kleibergen-Paap Wald rk F statistic                                12.97

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       6.25     P-val=0.0128
Anderson-Rubin Wald test           Chi-sq(1)=      7.00     P-val=0.0082
Stock-Wright LM S statistic        Chi-sq(1)=      9.52     P-val=0.0020

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   144.59
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9505
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9782
Residual SS             =  8969835.346                Root MSE      =    136.7

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |   .0323656   .0134854     2.40   0.016     .0059347    .0587965
   active_exp |  -4.999634   8.258905    -0.61   0.545    -21.18679    11.18752
cons_exp_2000 |  -793.8229   126.2307    -6.29   0.000    -1041.231   -546.4153
          pop |  -86.04039   63.85962    -1.35   0.178    -211.2029    39.12216
    ann_pr_mx |   .0380732   .0344225     1.11   0.269    -.0293935      .10554
   avg_tmp_mx |  -15.21161   15.20635    -1.00   0.317    -45.01551    14.59228
              |
           yr |
        2004  |   99.62294   37.61056     2.65   0.008      25.9076    173.3383
        2005  |   229.5101   37.89932     6.06   0.000     155.2288    303.7914
        2006  |   334.5231   46.13242     7.25   0.000     244.1052     424.941
        2007  |   296.1351   56.27602     5.26   0.000     185.8362    406.4341
        2008  |   191.5009   76.05289     2.52   0.012     42.43996    340.5618
        2009  |   56.95581   92.63512     0.61   0.539    -124.6057    238.5173
        2010  |    45.6553   85.36335     0.53   0.593    -121.6538    212.9644
        2011  |   69.75627   107.4998     0.65   0.516    -140.9395     280.452
        2012  |   66.40937   104.5316     0.64   0.525    -138.4687    271.2874
        2013  |   124.6985   80.58065     1.55   0.122    -33.23667    282.6337
        2014  |   234.6301   66.01937     3.55   0.000     105.2345    364.0256
        2015  |   311.9654   60.72044     5.14   0.000     192.9555    430.9753
        2016  |   385.1958   61.90848     6.22   0.000     263.8575    506.5342
        2017  |  -30.65741   182.8407    -0.17   0.867    -389.0187    327.7039
              |
        mx_id |
           2  |    432.643   210.8909     2.05   0.040     19.30445    845.9815
           3  |  -1081.804   244.8949    -4.42   0.000    -1561.789   -601.8188
           4  |   -1146.58   261.7262    -4.38   0.000    -1659.554   -633.6065
           5  |  -52.77789   268.0496    -0.20   0.844    -578.1454    472.5897
           6  |  -634.5305   230.0263    -2.76   0.006    -1085.374   -183.6872
           7  |   942.2053   520.5453     1.81   0.070    -78.04482    1962.455
           8  |  -435.1687   141.8269    -3.07   0.002    -713.1444   -157.1931
           9  |   389.1231   142.7051     2.73   0.006     109.4262    668.8199
          10  |  -213.2267   41.21277    -5.17   0.000    -294.0023   -132.4512
          11  |   2326.541   910.7211     2.55   0.011     541.5605    4111.522
          12  |   2228.335   313.4213     7.11   0.000      1614.04    2842.629
          13  |   564.9689    187.093     3.02   0.003     198.2733    931.6644
          14  |   185.1785   137.3473     1.35   0.178    -84.01732    454.3744
          15  |   2273.766   407.0823     5.59   0.000     1475.899    3071.632
          16  |    2738.86   261.2338    10.48   0.000     2226.851    3250.869
          17  |   259.5666   78.40982     3.31   0.001     105.8862    413.2471
          18  |   377.9701    92.4598     4.09   0.000     196.7522     559.188
          19  |   409.1339   241.4385     1.69   0.090    -64.07682    882.3446
          20  |   777.0212   180.9401     4.29   0.000     422.3851    1131.657
          21  |   930.8449   313.8022     2.97   0.003      315.804    1545.886
          22  |   -26.6273    69.1414    -0.39   0.700     -162.142    108.8874
          23  |  -1209.386   265.1559    -4.56   0.000    -1729.082   -689.6904
          24  |   1003.204    170.823     5.87   0.000     668.3972    1338.011
          25  |   747.9423   174.8131     4.28   0.000     405.3149     1090.57
          26  |  -49.09183   131.4266    -0.37   0.709    -306.6833    208.4996
          27  |  -992.3742    247.524    -4.01   0.000    -1477.512    -507.236
          28  |   494.6102   165.7203     2.98   0.003     169.8044    819.4159
          29  |  -550.1779   162.4086    -3.39   0.001    -868.4928   -231.8629
          30  |   1004.096   407.3676     2.46   0.014     205.6699    1802.522
          31  |  -34.41557   180.8993    -0.19   0.849    -388.9716    320.1405
          32  |          0  (omitted)
              |
        _cons |   2158.062   430.2904     5.02   0.000     1314.708    3001.415
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.842
                                                   Chi-sq(1) P-val =    0.0003
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               21.065
                         (Kleibergen-Paap rk Wald F statistic):         12.973
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_2000 pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_2000
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 cons_exp_2000, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. gen sc_cons_2000_w1 = active_exp_w1*cons_exp_2000_w1

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_2000_w1) active_exp_w1 cons_exp_2000_w1 ib(first).y
> r ib(first).mx_id, robust first savefirst savefprefix(est3_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_2000_w1 |   638.1611   178.2909     3.58   0.000     287.7356    988.5866
   active_exp_w1 |   -1888.75   635.6431    -2.97   0.003    -3138.087   -639.4118
cons_exp_2000_w1 |  -2157.197   2284.023    -0.94   0.345    -6646.378    2331.984
                 |
              yr |
           2004  |   263.4063   565.0012     0.47   0.641    -847.0869    1373.899
           2005  |   18.70292   571.1023     0.03   0.974    -1103.782    1141.188
           2006  |   713.9688   511.2867     1.40   0.163    -290.9501    1718.888
           2007  |   2480.031   424.4559     5.84   0.000     1645.776    3314.287
           2008  |   4903.027   503.3875     9.74   0.000     3913.634    5892.421
           2009  |   6143.616   614.5724    10.00   0.000     4935.692    7351.539
           2010  |   7399.225   924.4783     8.00   0.000      5582.19     9216.26
           2011  |   9147.078   1214.148     7.53   0.000     6760.705    11533.45
           2012  |   9239.384   1308.493     7.06   0.000      6667.58    11811.19
           2013  |   7380.834       1261     5.85   0.000     4902.376    9859.291
           2014  |   5416.709   1242.596     4.36   0.000     2974.423    7858.994
           2015  |   4441.209   1236.557     3.59   0.000     2010.793    6871.624
           2016  |   4465.177   1230.793     3.63   0.000      2046.09    6884.264
           2017  |   1186.077   1390.892     0.85   0.394     -1547.68    3919.834
                 |
           mx_id |
              2  |  -11010.37   720.8308   -15.27   0.000    -12427.15   -9593.602
              3  |  -14443.35   3174.224    -4.55   0.000    -20682.19   -8204.504
              4  |  -14299.18   3424.944    -4.18   0.000     -21030.8    -7567.55
              5  |  -10500.18   2458.026    -4.27   0.000    -15331.36   -5669.003
              6  |  -12915.05   3293.556    -3.92   0.000    -19388.44   -6441.665
              7  |  -12135.42   1920.255    -6.32   0.000    -15909.62   -8361.213
              8  |   -7673.06   1865.465    -4.11   0.000    -11339.58   -4006.544
              9  |  -8291.153   1127.378    -7.35   0.000    -10506.98   -6075.326
             10  |  -385.7087   929.3282    -0.42   0.678    -2212.276    1440.858
             11  |  -6505.558   636.8203   -10.22   0.000    -7757.209   -5253.906
             12  |   6828.215   2121.821     3.22   0.001     2657.838    10998.59
             13  |  -8004.307   1934.599    -4.14   0.000     -11806.7    -4201.91
             14  |  -7270.154   1250.833    -5.81   0.000    -9728.628   -4811.679
             15  |   -4024.27   829.3219    -4.85   0.000    -5654.278   -2394.262
             16  |  -1145.017   1875.044    -0.61   0.542     -4830.36    2540.326
             17  |  -2959.366   575.6846    -5.14   0.000    -4090.857   -1827.875
             18  |  -1784.791   1387.865    -1.29   0.199    -4512.598    943.0158
             19  |  -6752.723    535.497   -12.61   0.000    -7805.227    -5700.22
             20  |  -5905.415   1251.489    -4.72   0.000     -8365.18    -3445.65
             21  |  -9752.721   1776.771    -5.49   0.000    -13244.91    -6260.53
             22  |   1618.488   1015.942     1.59   0.112    -378.3172    3615.293
             23  |  -13610.06   3725.729    -3.65   0.000    -20932.87   -6287.251
             24  |   2418.221   2225.691     1.09   0.278    -1956.308    6792.751
             25  |  -8027.342   993.7527    -8.08   0.000    -9980.534   -6074.151
             26  |  -6973.405   1073.046    -6.50   0.000    -9082.444   -4864.365
             27  |  -13089.11   3350.731    -3.91   0.000    -19674.87   -6503.348
             28  |  -6088.813    485.903   -12.53   0.000    -7043.841   -5133.785
             29  |  -10327.56   1750.456    -5.90   0.000    -13768.03   -6887.088
             30  |  -7199.361   1649.296    -4.37   0.000       -10441   -3957.718
             31  |  -11382.45   942.2232   -12.08   0.000    -13234.36   -9530.538
             32  |          0  (omitted)
                 |
           _cons |   14447.11   5501.003     2.63   0.009     3635.046    25259.17
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    12.81
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    12.81
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      12.81    0.0004 |       14.24   0.0002 |       12.81

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.65    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      19.32
Kleibergen-Paap Wald rk F statistic                                12.81

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.51     P-val=0.0111
Anderson-Rubin Wald test           Chi-sq(1)=      7.23     P-val=0.0072
Stock-Wright LM S statistic        Chi-sq(1)=      8.52     P-val=0.0035

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   147.24
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9486
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9774
Residual SS             =  9270167.635                Root MSE      =      139

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |   .0355673   .0147241     2.42   0.016     .0067086     .064426
   active_exp_w1 |  -7.666607   9.046934    -0.85   0.397    -25.39827    10.06506
cons_exp_2000_w1 |  -749.8938   116.1619    -6.46   0.000     -977.567   -522.2206
                 |
              yr |
           2004  |   90.45045   33.95604     2.66   0.008     23.89783    157.0031
           2005  |   203.8374   33.36951     6.11   0.000     138.4343    269.2404
           2006  |   300.3138   41.64713     7.21   0.000     218.6869    381.9407
           2007  |   252.8742   53.73816     4.71   0.000     147.5493    358.1991
           2008  |   139.1766    78.9905     1.76   0.078    -15.64191    293.9952
           2009  |  -14.93873    92.8399    -0.16   0.872    -196.9016    167.0241
           2010  |  -8.734466   88.33551    -0.10   0.921    -181.8689       164.4
           2011  |   .7307139   104.2673     0.01   0.994    -203.6295     205.091
           2012  |  -4.148234   101.5614    -0.04   0.967     -203.205    194.9085
           2013  |    62.0678   77.96097     0.80   0.426    -90.73289    214.8685
           2014  |   173.9431   58.51075     2.97   0.003      59.2641     288.622
           2015  |   243.8358   49.04184     4.97   0.000     147.7156    339.9561
           2016  |   305.3293    51.6559     5.91   0.000     204.0856     406.573
           2017  |   40.43382   60.08389     0.67   0.501    -77.32844    158.1961
                 |
           mx_id |
              2  |   299.9085   178.4248     1.68   0.093    -49.79756    649.6146
              3  |  -1013.144   252.6105    -4.01   0.000    -1508.251   -518.0364
              4  |  -1104.515    251.409    -4.39   0.000    -1597.268   -611.7627
              5  |  -325.2937   190.6676    -1.71   0.088    -698.9954    48.40806
              6  |  -712.9305   233.1078    -3.06   0.002    -1169.813   -256.0476
              7  |   457.9678   204.1408     2.24   0.025     57.85919    858.0765
              8  |  -552.2204   138.1938    -4.00   0.000    -823.0753   -281.3655
              9  |   349.9366   137.3512     2.55   0.011      80.7331      619.14
             10  |     -225.3   42.04648    -5.36   0.000    -307.7096   -142.8904
             11  |   1219.311   117.4376    10.38   0.000     989.1377    1449.485
             12  |   1838.912   150.8671    12.19   0.000     1543.218    2134.606
             13  |   368.2128   147.7461     2.49   0.013     78.63573    657.7899
             14  |    142.232   122.0078     1.17   0.244      -96.899    381.3629
             15  |   1729.344   93.70972    18.45   0.000     1545.676    1913.012
             16  |   2388.982   110.6485    21.59   0.000     2172.115    2605.849
             17  |   181.3619   51.93265     3.49   0.000     79.57574     283.148
             18  |   346.7825   78.31749     4.43   0.000      193.283    500.2819
             19  |   87.85991   106.7073     0.82   0.410    -121.2825    297.0023
             20  |   571.1091   110.9408     5.15   0.000     353.6692    788.5491
             21  |   604.8786   174.6258     3.46   0.001     262.6183    947.1389
             22  |  -46.39074   54.61556    -0.85   0.396    -153.4353    60.65378
             23  |  -1212.728   253.2538    -4.79   0.000    -1709.096   -716.3597
             24  |   823.7157   121.3589     6.79   0.000     585.8565    1061.575
             25  |   549.1726   130.6588     4.20   0.000     293.0861    805.2591
             26  |  -189.4571   115.9642    -1.63   0.102    -416.7427    37.82848
             27  |  -1052.166   238.5423    -4.41   0.000      -1519.7   -584.6313
             28  |   280.7662   96.18184     2.92   0.004     92.25328    469.2792
             29  |  -440.8146   171.6574    -2.57   0.010     -777.257   -104.3722
             30  |   467.5547   139.3626     3.35   0.001      194.409    740.7004
             31  |  -153.7755   177.6702    -0.87   0.387    -502.0027    194.4517
             32  |          0  (omitted)
                 |
           _cons |   1707.711    324.988     5.25   0.000     1070.746    2344.675
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.646
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               19.325
                         (Kleibergen-Paap rk Wald F statistic):         12.812
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_2000_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id
Excluded instruments: sc_cons_2000_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_2000_w1) active_exp_w1 cons_exp_2000_w1 pop ann_pr_
> mx avg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_2000_w1 |    643.998   180.7369     3.56   0.000      288.758     999.238
   active_exp_w1 |  -1945.914   646.2655    -3.01   0.003    -3216.155   -675.6733
cons_exp_2000_w1 |  -564.2152   2323.719    -0.24   0.808    -5131.506    4003.075
             pop |   955.6003   494.4753     1.93   0.054    -16.29552    1927.496
       ann_pr_mx |   .7083468   .4979957     1.42   0.156    -.2704683    1.687162
      avg_tmp_mx |  -452.2996   237.1491    -1.91   0.057    -918.4183    13.81904
                 |
              yr |
           2004  |   264.7299   601.6006     0.44   0.660    -917.7216    1447.181
           2005  |   320.1871   627.2602     0.51   0.610    -912.6986    1553.073
           2006  |   973.2429   608.5166     1.60   0.110     -222.802    2169.288
           2007  |   2642.178   538.9519     4.90   0.000     1582.864    3701.493
           2008  |   4928.575   587.8285     8.38   0.000     3773.193    6083.957
           2009  |   6442.005   738.3954     8.72   0.000     4990.682    7893.328
           2010  |   7302.086   975.4842     7.49   0.000     5384.763    9219.409
           2011  |    9442.05   1263.993     7.47   0.000      6957.66    11926.44
           2012  |   9438.458   1362.356     6.93   0.000     6760.735    12116.18
           2013  |   7356.654   1290.305     5.70   0.000     4820.549     9892.76
           2014  |   5369.912   1268.411     4.23   0.000     2876.839    7862.984
           2015  |   4517.891   1271.434     3.55   0.000     2018.875    7016.907
           2016  |   4545.484   1269.709     3.58   0.000     2049.859    7041.108
           2017  |  -3115.124   3134.994    -0.99   0.321    -9276.984    3046.735
                 |
           mx_id |
              2  |  -12363.23   1136.193   -10.88   0.000    -14596.43   -10130.04
              3  |  -9243.305   3741.087    -2.47   0.014    -16596.45   -1890.165
              4  |   -8380.39   4342.397    -1.93   0.054    -16915.41    154.6302
              5  |  -10139.19   3390.801    -2.99   0.003    -16803.84   -3474.536
              6  |  -13087.69   3390.947    -3.86   0.000    -19752.63   -6422.755
              7  |  -20780.67   4452.123    -4.67   0.000    -29531.36   -12029.98
              8  |  -6434.255   2154.148    -2.99   0.003    -10668.25   -2200.258
              9  |  -4888.179   2140.229    -2.28   0.023    -9094.818   -681.5397
             10  |  -380.2754   943.6415    -0.40   0.687    -2235.011    1474.461
             11  |   -20567.6   6920.139    -2.97   0.003    -34169.19   -6965.998
             12  |   2156.102   3188.141     0.68   0.499    -4110.218    8422.421
             13  |  -6084.386    2697.14    -2.26   0.025    -11385.64   -783.1332
             14  |  -8484.634   1393.839    -6.09   0.000    -11224.24   -5745.031
             15  |  -9107.432   3066.206    -2.97   0.003    -15134.09   -3080.777
             16  |  -3468.923   2549.158    -1.36   0.174    -8479.316     1541.47
             17  |  -1730.645   1184.294    -1.46   0.145    -4058.385    597.0949
             18  |   -916.297   1617.282    -0.57   0.571     -4095.08    2262.486
             19  |  -8172.676   1846.302    -4.43   0.000     -11801.6   -4543.752
             20  |  -6118.106   1950.432    -3.14   0.002    -9951.698   -2284.513
             21  |  -12553.66   2739.682    -4.58   0.000    -17938.53   -7168.789
             22  |   87.01056   1140.047     0.08   0.939    -2153.762    2327.783
             23  |  -7859.303   4615.783    -1.70   0.089    -16931.67     1213.06
             24  |   712.8083    2400.08     0.30   0.767    -4004.571    5430.188
             25  |  -7126.892   1774.106    -4.02   0.000    -10613.91   -3639.871
             26  |  -5794.604    1549.37    -3.74   0.000    -8839.904   -2749.303
             27  |  -8790.112   4259.539    -2.06   0.040    -17162.27   -417.9496
             28  |  -5903.989    1488.25    -3.97   0.000    -8829.158    -2978.82
             29  |   -9944.96   1766.599    -5.63   0.000    -13417.23   -6472.694
             30  |  -10100.93   3634.956    -2.78   0.006    -17245.46   -2956.386
             31  |  -7993.703   2366.276    -3.38   0.001    -12644.64   -3342.766
             32  |          0  (omitted)
                 |
           _cons |   17007.07    6300.66     2.70   0.007     4623.063    29391.07
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    12.70
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    12.70
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      12.70    0.0004 |       14.21   0.0002 |       12.70

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.52    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      19.82
Kleibergen-Paap Wald rk F statistic                                12.70

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       5.81     P-val=0.0163
Anderson-Rubin Wald test           Chi-sq(1)=      6.50     P-val=0.0108
Stock-Wright LM S statistic        Chi-sq(1)=      8.63     P-val=0.0033

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   149.62
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9513
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9786
Residual SS             =  8778702.583                Root MSE      =    135.2

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |   .0326827   .0139236     2.35   0.019     .0053929    .0599725
   active_exp_w1 |  -5.869359   8.215966    -0.71   0.475    -21.97236    10.23364
cons_exp_2000_w1 |  -791.3988   126.9726    -6.23   0.000    -1040.261    -542.537
             pop |  -84.00604   63.82842    -1.32   0.188    -209.1075    41.09537
       ann_pr_mx |   .0386583   .0342172     1.13   0.259    -.0284063    .1057228
      avg_tmp_mx |  -14.94242   15.38692    -0.97   0.331    -45.10023     15.2154
                 |
              yr |
           2004  |   99.76668   37.72715     2.64   0.008     25.82282    173.7105
           2005  |   229.3888   38.03121     6.03   0.000     154.8491    303.9286
           2006  |   334.1852   46.21007     7.23   0.000     243.6151    424.7552
           2007  |   295.1448   56.73639     5.20   0.000     183.9435    406.3461
           2008  |   189.6814   77.73583     2.44   0.015     37.32197    342.0408
           2009  |   55.02532   95.10764     0.58   0.563    -131.3822    241.4329
           2010  |   45.58433    86.7097     0.53   0.599    -124.3636    215.5322
           2011  |   75.09296   107.6468     0.70   0.485    -135.8909    286.0769
           2012  |   70.54221   104.9499     0.67   0.501    -135.1559    276.2403
           2013  |   125.8757   80.96766     1.55   0.120    -32.81796    284.5694
           2014  |   236.3361   65.68634     3.60   0.000     107.5932    365.0789
           2015  |   313.5179   60.12608     5.21   0.000     195.6729    431.3628
           2016  |   379.9444   62.17602     6.11   0.000     258.0816    501.8072
           2017  |  -24.87818   185.5372    -0.13   0.893    -388.5243     338.768
                 |
           mx_id |
              2  |   433.0929   214.8985     2.02   0.044     11.89949    854.2863
              3  |  -1075.042   247.9332    -4.34   0.000    -1560.982   -589.1022
              4  |  -1142.381   263.9993    -4.33   0.000    -1659.811   -624.9523
              5  |  -57.77371   269.6003    -0.21   0.830    -586.1807    470.6332
              6  |  -633.1086   234.1444    -2.70   0.007    -1092.023    -174.194
              7  |   932.7759    523.364     1.78   0.075    -92.99864     1958.55
              8  |  -435.6056   143.5161    -3.04   0.002    -716.8921   -154.3192
              9  |   390.5378   144.0027     2.71   0.007     108.2976    672.7779
             10  |  -213.5111   41.72802    -5.12   0.000    -295.2965   -131.7257
             11  |   2301.026   910.8005     2.53   0.012     515.8901    4086.163
             12  |   2235.272   312.6683     7.15   0.000     1622.453    2848.091
             13  |   562.4375    188.266     2.99   0.003     193.4429    931.4321
             14  |   185.6294   140.1639     1.32   0.185    -89.08671    460.3456
             15  |   2261.762   406.9999     5.56   0.000     1464.057    3059.467
             16  |   2715.361   259.1867    10.48   0.000     2207.364    3223.357
             17  |   258.3434   78.74503     3.28   0.001      104.006    412.6808
             18  |   377.1656   92.97037     4.06   0.000     194.9471    559.3842
             19  |   403.2909   242.1178     1.67   0.096    -71.25121     877.833
             20  |   773.1553   181.7532     4.25   0.000     416.9255    1129.385
             21  |    925.139   315.6462     2.93   0.003     306.4838    1543.794
             22  |  -28.06139   69.37739    -0.40   0.686    -164.0386    107.9158
             23  |  -1206.434   267.2783    -4.51   0.000     -1730.29   -682.5783
             24  |   997.8188   171.5202     5.82   0.000     661.6454    1333.992
             25  |   745.6662   176.0898     4.23   0.000     400.5366    1090.796
             26  |  -49.88937   132.8361    -0.38   0.707    -310.2434    210.4647
             27  |  -991.7291    249.666    -3.97   0.000    -1481.065   -502.3928
             28  |   490.9315   166.3686     2.95   0.003     164.8551    817.0079
             29  |  -545.5543   166.7168    -3.27   0.001    -872.3133   -218.7953
             30  |   991.9878   407.7293     2.43   0.015      192.853    1791.123
             31  |  -34.17837   183.0722    -0.19   0.852    -392.9933    324.6366
             32  |          0  (omitted)
                 |
           _cons |   2142.232   437.6834     4.89   0.000     1284.389    3000.076
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.520
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               19.822
                         (Kleibergen-Paap rk Wald F statistic):         12.696
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_2000_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_2000_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Set notes in \scriptsize. Next, move final eight lines of firs
> t table to end of second table. Delete \midrule between the tables. Penultimately, consolidate notes b
> y moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which sho
> uld sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleibergen-Paap F 
> statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_2000.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}
> ", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0
> .5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_2000 "\hspace{0.5cm} Partisanship (200
> 0)" pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\
> hspace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit
> {2}" "\textit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern
> (1 0 1 0) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of
>  Deportations on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1
>  dpt_tot_prop active_exp_w1 active_exp cons_exp_2000_w1 cons_exp_2000) stats(N F Fp widstat, fmt(0 3 3
>  3) label(Observations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust
>  standard errors in parentheses. All models contain state and year fixed effects.") collabels(none) no
> obs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_2000.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_2000.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_2
> 000.tex", append refcat(sc_cons_2000 "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(*
>  0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_2000 "\hspace{0.5cm} Policy $\times$ Partisanship (2
> 000)" active_exp "\hspace{0.5cm} Policy" cons_exp_2000 "\hspace{0.5cm} Partisanship (2000)" pop "\hspa
> ce{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} 
> Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_2000_w1 sc_cons_2000 active
> _exp_w1 active_exp cons_exp_2000_w1 cons_exp_2000) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_2000.tex)

. 
. /** Vote shares from 2004 **/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_2004) active_exp cons_exp_2004 ib(first).yr ib(first).mx_
> id, robust first savefirst savefprefix(est1_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_2004 |   625.8065   183.0525     3.42   0.001     266.0222    985.5908
   active_exp |  -1954.111    685.318    -2.85   0.005    -3301.083   -607.1389
cons_exp_2004 |  -2069.577   2108.903    -0.98   0.327    -6214.565     2075.41
              |
           yr |
        2004  |   263.4063   580.2717     0.45   0.650    -877.1006    1403.913
        2005  |   17.15623   585.9709     0.03   0.977    -1134.552    1168.865
        2006  |   713.9688   526.4897     1.36   0.176    -320.8312    1748.769
        2007  |   2480.031   436.7137     5.68   0.000     1621.683    3338.379
        2008  |   4903.751   509.4099     9.63   0.000     3902.521    5904.982
        2009  |   6150.697   617.7313     9.96   0.000     4936.565     7364.83
        2010  |   7440.113   961.7967     7.74   0.000      5549.73    9330.496
        2011  |   9358.943    1326.33     7.06   0.000     6752.081     11965.8
        2012  |   9409.639   1405.616     6.69   0.000     6646.942    12172.34
        2013  |   7441.916   1322.825     5.63   0.000     4841.943    10041.89
        2014  |   5477.791   1308.962     4.18   0.000     2905.065    8050.517
        2015  |   4502.291   1306.924     3.44   0.001     1933.569    7071.012
        2016  |    4526.26   1301.498     3.48   0.001     1968.203    7084.316
        2017  |   1242.791   1459.879     0.85   0.395    -1626.558     4112.14
              |
        mx_id |
           2  |  -10993.15   717.3538   -15.32   0.000    -12403.09   -9583.215
           3  |  -14459.28    3079.96    -4.69   0.000    -20512.85   -8405.709
           4  |     -14326   3337.698    -4.29   0.000    -20886.14   -7765.848
           5  |  -10502.76   2390.239    -4.39   0.000    -15200.71    -5804.82
           6  |  -12958.56   3237.807    -4.00   0.000    -19322.38   -6594.751
           7  |   -12127.4   1865.896    -6.50   0.000    -15794.77    -8460.04
           8  |  -7712.148   1880.812    -4.10   0.000    -11408.83   -4015.468
           9  |  -8297.595   1116.265    -7.43   0.000    -10491.58   -6103.609
          10  |  -391.5435   932.3678    -0.42   0.675    -2224.085    1440.998
          11  |  -6492.887   607.8763   -10.68   0.000     -7687.65   -5298.124
          12  |   7385.236   2213.771     3.34   0.001     3034.134    11736.34
          13  |  -7981.234   1839.348    -4.34   0.000    -11596.42    -4366.05
          14  |  -7265.923   1216.617    -5.97   0.000    -9657.148   -4874.699
          15  |  -4025.784   811.2613    -4.96   0.000    -5620.294   -2431.273
          16  |  -1168.609   1849.117    -0.63   0.528    -4802.994    2465.777
          17  |  -2945.179   572.7598    -5.14   0.000    -4070.922   -1819.437
          18  |   -1795.63   1354.943    -1.33   0.186     -4458.73    867.4693
          19  |  -6781.918   573.3595   -11.83   0.000     -7908.84   -5654.997
          20  |  -5898.579    1219.73    -4.84   0.000    -8295.921   -3501.236
          21  |  -9705.228   1639.451    -5.92   0.000    -12927.52   -6482.936
          22  |   1616.734   1004.504     1.61   0.108    -357.5893    3591.057
          23  |  -13632.28   3620.228    -3.77   0.000    -20747.74   -6516.832
          24  |   2388.907   2124.634     1.12   0.261    -1786.997    6564.812
          25  |      -8027   1028.175    -7.81   0.000    -10047.85   -6006.153
          26  |  -6945.961   1017.418    -6.83   0.000    -8945.667   -4946.255
          27  |  -13117.92     3274.9    -4.01   0.000    -19554.64   -6681.204
          28  |  -6119.648   473.4205   -12.93   0.000    -7050.142   -5189.154
          29  |  -10284.95   1627.032    -6.32   0.000    -13482.84   -7087.069
          30  |   -7209.62   1624.201    -4.44   0.000    -10401.94   -4017.302
          31  |  -11369.44   926.4594   -12.27   0.000    -13190.37   -9548.515
          32  |          0  (omitted)
              |
        _cons |   14489.16   5356.392     2.71   0.007     3961.332    25016.99
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    11.69
  Prob > F      =   0.0007
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    11.69
  Prob > F      =   0.0007



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      11.69    0.0007 |       12.99   0.0003 |       11.69

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.69    P-val=0.0006

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      18.33
Kleibergen-Paap Wald rk F statistic                                11.69

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.48     P-val=0.0113
Anderson-Rubin Wald test           Chi-sq(1)=      7.20     P-val=0.0073
Stock-Wright LM S statistic        Chi-sq(1)=      8.85     P-val=0.0029

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   141.19
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9471
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9767
Residual SS             =   9584827.39                Root MSE      =    141.3

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |   .0359982   .0152029     2.37   0.018     .0062011    .0657954
   active_exp |  -7.271187   9.201308    -0.79   0.429    -25.30542    10.76304
cons_exp_2004 |  -698.8323   108.5234    -6.44   0.000    -911.5342   -486.1304
              |
           yr |
        2004  |   90.30103   34.00317     2.66   0.008     23.65604     156.946
        2005  |   204.0569   33.42249     6.11   0.000     138.5501    269.5638
        2006  |    300.178   41.99249     7.15   0.000     217.8743    382.4818
        2007  |   251.9774   54.76608     4.60   0.000     144.6378    359.3169
        2008  |   137.2271   81.16546     1.69   0.091    -21.85424    296.3085
        2009  |  -17.51167   95.29601    -0.18   0.854    -204.2884    169.2651
        2010  |  -12.34687   91.05635    -0.14   0.892     -190.814    166.1203
        2011  |  -9.527283    109.432    -0.09   0.931    -224.0101    204.9555
        2012  |  -12.82299   105.9692    -0.12   0.904    -220.5188    194.8729
        2013  |   58.16914   80.25779     0.72   0.469    -99.13325    215.4715
        2014  |   170.8908   59.84255     2.86   0.004     53.60161    288.1801
        2015  |   241.5537   49.98501     4.83   0.000     143.5848    339.5225
        2016  |   309.7067    51.8699     5.97   0.000     208.0436    411.3699
        2017  |   39.36208   60.63109     0.65   0.516    -79.47267    158.1968
              |
        mx_id |
           2  |   325.7224   182.8586     1.78   0.075    -32.67394    684.1187
           3  |  -984.2735   255.5287    -3.85   0.000    -1485.101   -483.4464
           4  |  -1077.698   253.8637    -4.25   0.000    -1575.262   -580.1347
           5  |   -304.841    192.635    -1.58   0.114    -682.3986    72.71658
           6  |  -697.5082   236.1402    -2.95   0.003    -1160.334    -234.682
           7  |   477.4785   207.8917     2.30   0.022     70.01817    884.9388
           8  |  -559.2337   142.0517    -3.94   0.000    -837.6499   -280.8175
           9  |   353.1995   140.9655     2.51   0.012     76.91217    629.4868
          10  |  -229.8364    42.4011    -5.42   0.000    -312.9411   -146.7318
          11  |   1234.543   119.3449    10.34   0.000     1000.631    1468.455
          12  |   1804.775   159.3815    11.32   0.000     1492.392    2117.157
          13  |   398.5738     147.66     2.70   0.007     109.1655    687.9822
          14  |   154.2882    124.174     1.24   0.214    -89.08851    397.6648
          15  |   1728.832    94.6573    18.26   0.000     1543.307    1914.357
          16  |   2403.506   114.2321    21.04   0.000     2179.615    2627.397
          17  |   200.2918   53.29142     3.76   0.000     95.84251     304.741
          18  |   340.8415   77.97464     4.37   0.000     188.0141     493.669
          19  |   64.94771   110.4524     0.59   0.557    -151.5351    281.4305
          20  |   581.1312   112.5076     5.17   0.000     360.6205     801.642
          21  |   652.1861   174.4527     3.74   0.000     310.2651    994.1072
          22  |  -51.23242   54.88058    -0.93   0.351    -158.7964    56.33154
          23  |  -1181.356   254.3328    -4.64   0.000    -1679.839   -682.8726
          24  |   794.9219   118.2518     6.72   0.000     563.1526    1026.691
          25  |   568.1389    134.624     4.22   0.000     304.2807    831.9971
          26  |  -159.9257   117.3474    -1.36   0.173    -389.9224    70.07092
          27  |   -1030.14   240.9339    -4.28   0.000    -1502.362   -557.9184
          28  |   251.1688   99.06002     2.54   0.011     57.01469    445.3228
          29  |  -396.9484   172.4883    -2.30   0.021    -735.0192   -58.87754
          30  |    475.008   141.3158     3.36   0.001     198.0342    751.9818
          31  |  -141.4067   182.6449    -0.77   0.439    -499.3841    216.5706
          32  |          0  (omitted)
              |
        _cons |   1671.174   324.0284     5.16   0.000      1036.09    2306.258
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.686
                                                   Chi-sq(1) P-val =    0.0006
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               18.333
                         (Kleibergen-Paap rk Wald F statistic):         11.688
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_2004 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id
Excluded instruments: sc_cons_2004
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_2004) active_exp cons_exp_2004 pop ann_pr_mx avg_tmp_mx i
> b(first).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_2004 |   632.6253   186.2044     3.40   0.001     266.6389    998.6117
   active_exp |  -2016.612   699.4544    -2.88   0.004    -3391.396   -641.8277
cons_exp_2004 |  -548.9632   2147.733    -0.26   0.798    -4770.351    3672.425
          pop |   1017.032   522.7391     1.95   0.052    -10.41631    2044.481
    ann_pr_mx |    .674264   .5051686     1.33   0.183    -.3186494    1.667177
   avg_tmp_mx |  -448.2856   239.6702    -1.87   0.062    -919.3595    22.78833
              |
           yr |
        2004  |   254.2901   617.4514     0.41   0.681    -959.3163    1467.897
        2005  |   297.8193   641.0355     0.46   0.642    -962.1417     1557.78
        2006  |   946.7279   623.5008     1.52   0.130    -278.7686    2172.224
        2007  |   2612.635   550.7598     4.74   0.000     1530.111    3695.158
        2008  |    4898.21   594.4093     8.24   0.000     3729.893    6066.527
        2009  |   6408.648   741.1521     8.65   0.000     4951.906    7865.389
        2010  |   7312.807   1005.641     7.27   0.000     5336.212    9289.403
        2011  |   9616.698   1357.551     7.08   0.000     6948.419    12284.98
        2012  |   9570.292   1444.665     6.62   0.000      6730.79    12409.79
        2013  |     7382.9   1340.614     5.51   0.000     4747.911    10017.89
        2014  |   5393.264   1321.688     4.08   0.000     2795.474    7991.054
        2015  |   4535.185     1326.7     3.42   0.001     1927.544    7142.826
        2016  |   4560.114   1323.277     3.45   0.001     1959.201    7161.027
        2017  |  -3085.985   3194.173    -0.97   0.335    -9364.161     3192.19
              |
        mx_id |
           2  |  -12513.52   1175.992   -10.64   0.000    -14824.94    -10202.1
           3  |  -9246.828   3666.013    -2.52   0.012    -16452.41   -2041.247
           4  |  -8377.673   4282.286    -1.96   0.051    -16794.54    39.19866
           5  |  -10329.51   3403.529    -3.03   0.003    -17019.18   -3639.842
           6  |  -13228.88   3354.466    -3.94   0.000    -19822.11   -6635.647
           7  |  -21199.35   4597.776    -4.61   0.000    -30236.32   -12162.38
           8  |  -6523.804   2185.528    -2.99   0.003    -10819.48   -2228.129
           9  |  -4889.032    2147.65    -2.28   0.023    -9110.257   -667.8071
          10  |  -382.1096     948.95    -0.40   0.687     -2247.28     1483.06
          11  |  -21393.77   7304.649    -2.93   0.004    -35751.13   -7036.421
          12  |   2457.506   3301.714     0.74   0.457    -4032.043    8947.055
          13  |  -6223.274   2657.261    -2.34   0.020    -11446.14   -1000.403
          14  |  -8549.381    1379.24    -6.20   0.000    -11260.29   -5838.472
          15  |  -9484.034   3244.067    -2.92   0.004    -15860.28   -3107.791
          16  |  -3710.029   2617.193    -1.42   0.157    -8854.146    1434.087
          17  |  -1786.282   1188.426    -1.50   0.134    -4122.145    549.5808
          18  |  -913.3901   1596.038    -0.57   0.567    -4050.418    2223.637
          19  |  -8362.715   1950.263    -4.29   0.000    -12195.97   -4529.456
          20  |  -6249.605   1977.485    -3.16   0.002    -10136.37    -2362.84
          21  |  -12831.66     2758.3    -4.65   0.000    -18253.13     -7410.2
          22  |    74.3457   1136.085     0.07   0.948    -2158.639    2307.331
          23  |   -7888.31   4539.602    -1.74   0.083    -16810.94    1034.319
          24  |   626.2604   2334.315     0.27   0.789    -3961.857    5214.378
          25  |  -7280.621   1828.991    -3.98   0.000    -10875.52   -3685.723
          26  |   -5911.68    1525.64    -3.87   0.000     -8910.34    -2913.02
          27  |  -8842.439   4217.352    -2.10   0.037    -17131.68   -553.1964
          28  |   -5995.41   1541.756    -3.89   0.000    -9025.746   -2965.075
          29  |   -9931.94   1649.976    -6.02   0.000    -13174.98   -6688.896
          30  |  -10461.03   3788.178    -2.76   0.006    -17906.73   -3015.332
          31  |  -8040.816    2380.56    -3.38   0.001    -12719.83   -3361.804
          32  |          0  (omitted)
              |
        _cons |   16929.98   6216.243     2.72   0.007     4711.901    29148.06
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    11.54
  Prob > F      =   0.0007
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    11.54
  Prob > F      =   0.0007



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      11.54    0.0007 |       12.92   0.0003 |       11.54

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.54    P-val=0.0007

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      18.84
Kleibergen-Paap Wald rk F statistic                                11.54

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       5.74     P-val=0.0170
Anderson-Rubin Wald test           Chi-sq(1)=      6.43     P-val=0.0112
Stock-Wright LM S statistic        Chi-sq(1)=      8.90     P-val=0.0028

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   143.65
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9501
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9780
Residual SS             =  9036010.162                Root MSE      =    137.2

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |   .0329275   .0143172     2.30   0.021     .0048663    .0609886
   active_exp |  -5.264687   8.335102    -0.63   0.528    -21.60119    11.07181
cons_exp_2004 |  -739.6458   118.4787    -6.24   0.000    -971.8598   -507.4319
          pop |   -86.4942   63.97857    -1.35   0.176    -211.8899     38.9015
    ann_pr_mx |   .0377443   .0346163     1.09   0.276    -.0301024    .1055909
   avg_tmp_mx |  -14.94517   15.43677    -0.97   0.333    -45.20068    15.31034
              |
           yr |
        2004  |   99.49533   37.74728     2.64   0.008     25.51202    173.4786
        2005  |   229.3566   38.07242     6.02   0.000      154.736    303.9771
        2006  |   334.0034   46.55061     7.18   0.000     242.7659    425.2409
        2007  |    294.674   57.72551     5.10   0.000     181.5341    407.8139
        2008  |   188.7729   79.62853     2.37   0.018     32.70384     344.842
        2009  |   53.60721   97.35609     0.55   0.582    -137.2072    244.4216
        2010  |   43.00501   89.12733     0.48   0.629    -131.6813    217.6914
        2011  |   66.37553   112.4204     0.59   0.555    -153.9644    286.7154
        2012  |   63.27186   109.0228     0.58   0.562    -150.4088    276.9525
        2013  |    122.881   83.01534     1.48   0.139    -39.82603    285.5881
        2014  |   233.9252   66.87545     3.50   0.000     102.8517    364.9987
        2015  |   311.7375   61.04184     5.11   0.000     192.0977    431.3773
        2016  |   384.9465   62.22186     6.19   0.000     262.9939    506.8991
        2017  |  -26.43143   186.1494    -0.14   0.887    -391.2775    338.4147
              |
        mx_id |
           2  |   462.1114   219.7146     2.10   0.035      31.4787     892.744
           3  |  -1051.971   246.7315    -4.26   0.000    -1535.556    -568.386
           4  |  -1120.073   262.6104    -4.27   0.000     -1634.78   -605.3664
           5  |  -30.49362   271.1912    -0.11   0.910    -562.0187    501.0314
           6  |  -616.8123   236.6497    -2.61   0.009    -1080.637   -152.9875
           7  |   968.6165   529.0599     1.83   0.067    -68.32194    2005.555
           8  |   -442.624   145.7405    -3.04   0.002    -728.2701   -156.9779
           9  |   391.6489   145.1234     2.70   0.007     107.2122    676.0855
          10  |  -218.0193   41.94313    -5.20   0.000    -300.2264   -135.8123
          11  |   2350.146   915.3352     2.57   0.010     556.1222     4144.17
          12  |    2215.14   313.7586     7.06   0.000     1600.185    2830.096
          13  |   596.7551   187.8012     3.18   0.001     228.6716    964.8387
          14  |   199.3332   142.7341     1.40   0.163    -80.42046    479.0869
          15  |   2276.066   408.5574     5.57   0.000     1475.308    3076.823
          16  |     2738.7   261.8267    10.46   0.000      2225.53    3251.871
          17  |   279.1887    79.3839     3.52   0.000     123.5991    434.7783
          18  |   371.4145   92.42582     4.02   0.000     190.2632    552.5657
          19  |    385.921   242.6667     1.59   0.112    -89.69694    861.5389
          20  |   788.2561   183.0112     4.31   0.000     429.5607    1146.952
          21  |   983.3836   319.1846     3.08   0.002     357.7934    1608.974
          22  |  -31.11768   69.20136    -0.45   0.653    -166.7499    104.5145
          23  |  -1177.997   264.9556    -4.45   0.000      -1697.3   -658.6935
          24  |   972.9183    167.853     5.80   0.000     643.9325    1301.904
          25  |    768.339   178.7908     4.30   0.000     417.9154    1118.763
          26  |  -17.70735    133.897    -0.13   0.895    -280.1406    244.7259
          27  |  -970.2235   249.4088    -3.89   0.000    -1459.056   -481.3912
          28  |   463.4128   166.0934     2.79   0.005     137.8757    788.9499
          29  |  -502.6787   166.7413    -3.01   0.003    -829.4858   -175.8717
          30  |   1013.706   409.3828     2.48   0.013     211.3304    1816.081
          31  |  -21.92776   185.0745    -0.12   0.906     -384.667    340.8115
          32  |          0  (omitted)
              |
        _cons |   2114.352   436.1032     4.85   0.000     1259.605    2969.098
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.538
                                                   Chi-sq(1) P-val =    0.0007
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               18.838
                         (Kleibergen-Paap rk Wald F statistic):         11.543
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_2004 pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_2004
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 cons_exp_2004, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. gen sc_cons_2004_w1 = active_exp_w1*cons_exp_2004_w1

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_2004_w1) active_exp_w1 cons_exp_2004_w1 ib(first).y
> r ib(first).mx_id, robust first savefirst savefprefix(est3_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_2004_w1 |   586.5441   174.3605     3.36   0.001     243.8438    929.2444
   active_exp_w1 |  -1819.577   656.7907    -2.77   0.006     -3110.48   -528.6744
cons_exp_2004_w1 |  -2014.878   2131.365    -0.95   0.345    -6204.014    2174.257
                 |
              yr |
           2004  |   263.4063    569.377     0.46   0.644    -855.6875      1382.5
           2005  |   18.70292   575.3201     0.03   0.974    -1112.072    1149.478
           2006  |   713.9688   515.3609     1.39   0.167    -298.9579    1726.895
           2007  |   2480.031   427.6187     5.80   0.000     1639.559    3320.503
           2008  |   4901.941   504.7947     9.71   0.000     3909.782    5894.101
           2009  |   6131.589   615.5964     9.96   0.000     4921.652    7341.526
           2010  |   7332.657   942.2247     7.78   0.000     5480.742    9184.572
           2011  |   9050.455    1239.72     7.30   0.000     6613.822    11487.09
           2012  |    9130.84   1338.849     6.82   0.000     6499.372    11762.31
           2013  |   7267.008    1292.71     5.62   0.000     4726.224    9807.791
           2014  |   5302.883   1274.651     4.16   0.000     2797.593    7808.172
           2015  |   4327.383   1268.203     3.41   0.001     1834.766    6819.999
           2016  |   4351.351   1262.165     3.45   0.001     1870.603      6832.1
           2017  |   1072.251   1418.865     0.76   0.450    -1716.486    3860.988
                 |
           mx_id |
              2  |  -11010.83   716.6942   -15.36   0.000    -12419.48   -9602.193
              3  |  -14395.06   3108.921    -4.63   0.000    -20505.55   -8284.566
              4  |  -14237.04   3367.085    -4.23   0.000    -20854.94   -7619.131
              5  |  -10470.23   2412.667    -4.34   0.000    -15212.25   -5728.201
              6  |  -12880.23   3267.124    -3.94   0.000    -19301.66   -6458.793
              7  |   -12117.5   1881.247    -6.44   0.000    -15815.04   -8419.967
              8  |   -7683.75   1897.863    -4.05   0.000    -11413.94   -3953.556
              9  |  -8294.441   1127.896    -7.35   0.000    -10511.29   -6077.595
             10  |  -390.3052    939.495    -0.42   0.678    -2236.855    1456.245
             11  |  -6495.056   611.2618   -10.63   0.000    -7696.473   -5293.639
             12  |   6833.118   2102.227     3.25   0.001     2701.252    10964.98
             13  |  -7963.697   1856.687    -4.29   0.000    -11612.96   -4314.434
             14  |   -7257.67   1226.673    -5.92   0.000    -9668.659    -4846.68
             15  |  -4027.894    824.766    -4.88   0.000    -5648.947    -2406.84
             16  |  -1140.504   1871.664    -0.61   0.543    -4819.204    2538.197
             17  |    -2949.5    582.353    -5.06   0.000    -4094.097   -1804.902
             18  |  -1785.959    1370.97    -1.30   0.193    -4480.561    908.6429
             19  |  -6776.491   577.2847   -11.74   0.000    -7911.127   -5641.855
             20  |  -5900.417   1230.917    -4.79   0.000    -8319.749   -3481.086
             21  |  -9703.638   1652.684    -5.87   0.000    -12951.94   -6455.336
             22  |   1615.501   1015.149     1.59   0.112    -379.7457    3610.747
             23  |  -13537.19   3653.419    -3.71   0.000    -20717.88   -6356.502
             24  |   2426.902   2153.681     1.13   0.260    -1806.094    6659.897
             25  |  -8028.293   1032.955    -7.77   0.000    -10058.54   -5998.049
             26  |  -6953.112   1018.939    -6.82   0.000    -8955.808   -4950.417
             27  |  -13042.79   3304.927    -3.95   0.000    -19538.52    -6547.05
             28  |  -6115.012   479.2909   -12.76   0.000    -7057.044    -5172.98
             29  |  -10276.33   1638.459    -6.27   0.000    -13496.67   -7055.985
             30  |  -7188.476   1638.281    -4.39   0.000    -10408.47   -3968.483
             31  |  -11385.25   928.2114   -12.27   0.000    -13209.62   -9560.879
             32  |          0  (omitted)
                 |
           _cons |   14370.63   5410.284     2.66   0.008     3736.878    25004.38
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    11.32
  Prob > F      =   0.0008
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    11.32
  Prob > F      =   0.0008



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      11.32    0.0008 |       12.57   0.0004 |       11.32

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.28    P-val=0.0008

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      17.13
Kleibergen-Paap Wald rk F statistic                                11.32

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.02     P-val=0.0145
Anderson-Rubin Wald test           Chi-sq(1)=      6.69     P-val=0.0097
Stock-Wright LM S statistic        Chi-sq(1)=      7.99     P-val=0.0047

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   145.92
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9480
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9771
Residual SS             =  9374130.724                Root MSE      =    139.7

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |    .036421   .0157056     2.32   0.020     .0056385    .0672035
   active_exp_w1 |  -8.078925   9.231465    -0.88   0.381    -26.17226    10.01441
cons_exp_2004_w1 |  -697.4746   109.9732    -6.34   0.000    -913.0182    -481.931
                 |
              yr |
           2004  |   90.22557   34.17162     2.64   0.008     23.25042    157.2007
           2005  |   203.8214   33.56036     6.07   0.000     138.0443    269.5985
           2006  |   299.7043   42.05164     7.13   0.000     217.2846     382.124
           2007  |    250.757   55.43919     4.52   0.000     142.0981    359.4158
           2008  |   135.0256   83.32744     1.62   0.105    -28.29318    298.3444
           2009  |  -19.81164    98.2728    -0.20   0.840    -212.4228    172.7995
           2010  |  -12.93507     93.046    -0.14   0.889    -195.3019    169.4317
           2011  |  -4.133329     109.82    -0.04   0.970    -219.3766      211.11
           2012  |  -8.772896   106.7516    -0.08   0.935    -218.0022    200.4564
           2013  |    59.1755   81.03286     0.73   0.465      -99.646     217.997
           2014  |   172.7276   59.68986     2.89   0.004     55.73758    289.7175
           2015  |   243.4532   49.45548     4.92   0.000     146.5222    340.3841
           2016  |   304.9261   52.08193     5.85   0.000     202.8474    407.0048
           2017  |   42.83009   61.11284     0.70   0.483    -76.94887     162.609
                 |
           mx_id |
              2  |   330.8013   188.6677     1.75   0.080    -38.98047    700.5831
              3  |  -977.8661   262.3166    -3.73   0.000    -1491.997   -463.7349
              4  |  -1072.122    260.343    -4.12   0.000    -1582.385   -561.8591
              5  |  -300.4303   197.7333    -1.52   0.129    -687.9805    87.11993
              6  |  -692.3954    242.084    -2.86   0.004    -1166.871   -217.9194
              7  |   482.7392   213.9158     2.26   0.024     63.47193    902.0064
              8  |  -556.1391   145.7713    -3.82   0.000    -841.8455   -270.4326
              9  |   356.8951   144.9481     2.46   0.014     72.80203    640.9882
             10  |  -229.6804    43.1238    -5.33   0.000    -314.2015   -145.1593
             11  |   1237.333   122.1409    10.13   0.000     997.9411    1476.724
             12  |   1822.314     156.04    11.68   0.000     1516.481    2128.147
             13  |   401.9596   151.5984     2.65   0.008     104.8323    699.0869
             14  |    157.336   127.7846     1.23   0.218     -93.1172    407.7892
             15  |   1730.681   96.52474    17.93   0.000     1541.495    1919.866
             16  |   2388.169   111.7842    21.36   0.000     2169.076    2607.262
             17  |   201.6192   54.78424     3.68   0.000     94.24404    308.9943
             18  |   341.6932   78.99289     4.33   0.000       186.87    496.5164
             19  |   67.66294   113.7663     0.59   0.552    -155.3149    290.6407
             20  |   583.7991   115.5401     5.05   0.000     357.3446    810.2535
             21  |   656.5096   179.4262     3.66   0.000     304.8407    1008.179
             22  |  -51.91216   55.73082    -0.93   0.352    -161.1426    57.31823
             23  |  -1176.013   260.4714    -4.51   0.000    -1686.527   -665.4981
             24  |   793.4019   119.8195     6.62   0.000       558.56    1028.244
             25  |   571.7318   138.5798     4.13   0.000     300.1205    843.3431
             26  |  -156.7914   120.9504    -1.30   0.195    -393.8498    80.26691
             27  |  -1024.895   246.9826    -4.15   0.000    -1508.972    -540.818
             28  |   253.5897   101.9876     2.49   0.013     53.69774    453.4817
             29  |  -392.5182   177.6905    -2.21   0.027    -740.7852   -44.25113
             30  |   477.9225   144.4674     3.31   0.001     194.7715    761.0735
             31  |  -136.2247   188.6928    -0.72   0.470    -506.0557    233.6063
             32  |          0  (omitted)
                 |
           _cons |    1664.03   331.0138     5.03   0.000     1015.255    2312.805
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.284
                                                   Chi-sq(1) P-val =    0.0008
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               17.134
                         (Kleibergen-Paap rk Wald F statistic):         11.316
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_2004_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id
Excluded instruments: sc_cons_2004_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_2004_w1) active_exp_w1 cons_exp_2004_w1 pop ann_pr_
> mx avg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_2004_w1 |   592.1016   176.8079     3.35   0.001     244.5841    939.6191
   active_exp_w1 |  -1876.614   667.9284    -2.81   0.005    -3189.434   -563.7949
cons_exp_2004_w1 |  -532.5024   2167.913    -0.25   0.806    -4793.555    3728.551
             pop |   950.2155    497.155     1.91   0.057    -26.94724    1927.378
       ann_pr_mx |   .6996718   .4986896     1.40   0.161    -.2805072    1.679851
      avg_tmp_mx |  -453.3965   236.7766    -1.91   0.056     -918.783    11.99002
                 |
              yr |
           2004  |   262.0567   606.1592     0.43   0.666    -929.3548    1453.468
           2005  |   316.5788   631.8203     0.50   0.617    -925.2697    1558.427
           2006  |   969.1824   612.8343     1.58   0.115    -235.3489    2173.714
           2007  |   2638.347   542.8018     4.86   0.000     1571.465    3705.229
           2008  |   4924.158   590.1562     8.34   0.000     3764.201    6084.116
           2009  |   6426.088   739.7744     8.69   0.000     4972.054    7880.121
           2010  |   7232.244   991.6061     7.29   0.000     5283.234    9181.255
           2011  |   9341.864   1287.135     7.26   0.000     6811.989    11871.74
           2012  |   9326.292   1389.833     6.71   0.000     6594.562    12058.02
           2013  |   7240.473   1319.104     5.49   0.000     4647.762    9833.183
           2014  |   5253.965   1297.113     4.05   0.000     2704.477    7803.453
           2015  |   4401.835   1299.264     3.39   0.001      1848.12     6955.55
           2016  |   4429.899   1296.825     3.42   0.001     1880.977    6978.821
           2017  |  -3247.369   3143.681    -1.03   0.302    -9426.303    2931.565
                 |
           mx_id |
              2  |  -12402.07   1143.711   -10.84   0.000    -14650.04   -10154.09
              3  |  -9249.192   3676.855    -2.52   0.012    -16476.09     -2022.3
              4  |  -8354.596   4286.644    -1.95   0.052    -16780.03    70.84175
              5  |  -10109.29   3359.562    -3.01   0.003    -16712.54   -3506.041
              6  |  -13068.78   3368.459    -3.88   0.000    -19689.52   -6448.046
              7  |  -20755.81   4458.229    -4.66   0.000     -29518.5   -11993.12
              8  |  -6415.384   2184.811    -2.94   0.003    -10709.65   -2121.119
              9  |  -4882.102   2138.227    -2.28   0.023    -9084.808   -679.3967
             10  |  -373.0927   954.0582    -0.39   0.696    -2248.303    1502.117
             11  |  -20507.11   6959.714    -2.95   0.003     -34186.5   -6827.732
             12  |   2208.097   3185.464     0.69   0.489    -4052.962    8469.156
             13  |  -6082.102   2635.352    -2.31   0.021    -11261.91   -902.2925
             14  |  -8485.405   1376.048    -6.17   0.000    -11190.04    -5780.77
             15  |  -9067.782   3080.866    -2.94   0.003    -15123.25   -3012.311
             16  |  -3437.098   2553.381    -1.35   0.179    -8455.793    1581.596
             17  |  -1748.245    1180.81    -1.48   0.139    -4069.137    572.6466
             18  |  -894.0159    1603.92    -0.56   0.578    -4046.536    2258.504
             19  |   -8118.71   1863.164    -4.36   0.000    -11780.78   -4456.644
             20  |   -6106.64   1939.232    -3.15   0.002    -9918.218   -2295.062
             21  |  -12567.48   2680.687    -4.69   0.000     -17836.4   -7298.569
             22  |   96.70105   1137.818     0.08   0.932     -2139.69    2333.092
             23  |  -7829.408   4546.495    -1.72   0.086    -16765.59    1106.769
             24  |    792.649   2331.694     0.34   0.734    -3790.317    5375.614
             25  |  -7144.521   1793.432    -3.98   0.000    -10669.53   -3619.514
             26  |  -5821.857   1506.515    -3.86   0.000    -8782.927   -2860.788
             27  |  -8757.073   4216.497    -2.08   0.038    -17044.64   -469.5093
             28  |  -5843.356    1493.45    -3.91   0.000    -8778.746   -2907.966
             29  |  -9978.482   1657.127    -6.02   0.000    -13235.58   -6721.384
             30  |  -10050.44   3644.411    -2.76   0.006    -17213.56   -2887.318
             31  |  -7994.925   2352.958    -3.40   0.001    -12619.69   -3370.164
             32  |          0  (omitted)
                 |
           _cons |   17038.36    6227.04     2.74   0.006     4799.057    29277.66
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    11.21
  Prob > F      =   0.0009
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    11.21
  Prob > F      =   0.0009



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      11.21    0.0009 |       12.55   0.0004 |       11.21

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.18    P-val=0.0008

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      17.58
Kleibergen-Paap Wald rk F statistic                                11.21

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       5.30     P-val=0.0218
Anderson-Rubin Wald test           Chi-sq(1)=      5.93     P-val=0.0149
Stock-Wright LM S statistic        Chi-sq(1)=      8.01     P-val=0.0046

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   148.67
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9509
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9784
Residual SS             =  8840152.837                Root MSE      =    135.7

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |   .0332366   .0148078     2.24   0.025     .0042139    .0622594
   active_exp_w1 |  -6.119938   8.319204    -0.74   0.462    -22.42528     10.1854
cons_exp_2004_w1 |  -737.3827   119.1719    -6.19   0.000    -970.9553   -503.8101
             pop |  -84.42388   63.94239    -1.32   0.187    -209.7487    40.90089
       ann_pr_mx |   .0383167     .03442     1.11   0.266    -.0291453    .1057788
      avg_tmp_mx |  -14.67782   15.63519    -0.94   0.348    -45.32223    15.96659
                 |
              yr |
           2004  |    99.6356   37.86094     2.63   0.008     25.42951    173.8417
           2005  |   229.2262   38.20642     6.00   0.000      154.343    304.1094
           2006  |   333.6596   46.64949     7.15   0.000     242.2283    425.0909
           2007  |   293.6895   58.29706     5.04   0.000     179.4294    407.9497
           2008  |   186.9759   81.56832     2.29   0.022     27.10491    346.8469
           2009  |   51.69823   100.1605     0.52   0.606    -144.6127    248.0092
           2010  |   42.92383   90.75074     0.47   0.636    -134.9444     220.792
           2011  |   71.78429     112.82     0.64   0.525    -149.3388    292.9074
           2012  |   67.44254   109.7038     0.61   0.539    -147.5729     282.458
           2013  |   124.0156   83.60956     1.48   0.138    -39.85617    287.8873
           2014  |   235.5714   66.63726     3.54   0.000     104.9648     366.178
           2015  |   313.2205   60.49499     5.18   0.000     194.6525    431.7885
           2016  |   379.6247   62.55917     6.07   0.000     257.0109    502.2384
           2017  |  -20.77963   189.1303    -0.11   0.913    -391.4683     349.909
                 |
           mx_id |
              2  |   462.3293    224.241     2.06   0.039     22.82495    901.8336
              3  |  -1045.335   250.1024    -4.18   0.000    -1535.526   -555.1431
              4  |  -1115.962   265.0736    -4.21   0.000    -1635.497   -596.4272
              5  |  -35.68797   272.8966    -0.13   0.896    -570.5554    499.1795
              6  |  -615.5549   241.2335    -2.55   0.011    -1088.364    -142.746
              7  |   958.7913   532.3396     1.80   0.072    -84.57509    2002.158
              8  |  -443.1087    147.619    -3.00   0.003    -732.4367   -153.7807
              9  |   393.0261   146.5554     2.68   0.007     105.7828    680.2693
             10  |  -218.2939   42.46497    -5.14   0.000    -301.5237   -135.0641
             11  |   2324.053   915.4683     2.54   0.011     529.7683    4118.338
             12  |   2222.329   312.9205     7.10   0.000     1609.016    2835.641
             13  |   594.0417   189.0315     3.14   0.002     223.5467    964.5367
             14  |   199.6658   145.9075     1.37   0.171    -86.30763    485.6393
             15  |   2263.819   408.4941     5.54   0.000     1463.186    3064.453
             16  |   2715.079   259.6799    10.46   0.000     2206.116    3224.043
             17  |   277.8795   79.72438     3.49   0.000     121.6226    434.1364
             18  |    370.624   92.93467     3.99   0.000     188.4754    552.7727
             19  |   380.0007   243.4774     1.56   0.119    -97.20622    857.2076
             20  |   784.2598   183.9173     4.26   0.000     423.7885    1144.731
             21  |   977.3281   321.2634     3.04   0.002     347.6634    1606.993
             22  |  -32.54637   69.43787    -0.47   0.639    -168.6421    103.5494
             23  |  -1175.157   267.2091    -4.40   0.000    -1698.877   -651.4366
             24  |   967.5849   168.5728     5.74   0.000     637.1883    1297.982
             25  |   765.8974   180.2211     4.25   0.000     412.6706    1119.124
             26  |  -18.68102   135.4531    -0.14   0.890    -284.1642    246.8022
             27  |  -969.6859   251.7207    -3.85   0.000     -1463.05   -476.3223
             28  |   459.7365   166.8528     2.76   0.006      132.711     786.762
             29  |  -498.2369   171.5895    -2.90   0.004    -834.5462   -161.9277
             30  |   1001.353   409.7689     2.44   0.015     198.2205    1804.485
             31  |  -21.80323   187.5135    -0.12   0.907    -389.3229    345.7164
             32  |          0  (omitted)
                 |
           _cons |   2098.687   444.2821     4.72   0.000      1227.91    2969.464
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.177
                                                   Chi-sq(1) P-val =    0.0008
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               17.577
                         (Kleibergen-Paap rk Wald F statistic):         11.215
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_2004_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_2004_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Set notes in \scriptsize. Next, move final eight lines of firs
> t table to end of second table. Delete \midrule between the tables. Penultimately, consolidate notes b
> y moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which sho
> uld sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleibergen-Paap F 
> statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_2004.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}
> ", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0
> .5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_2004 "\hspace{0.5cm} Partisanship (200
> 4)" pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\
> hspace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit
> {2}" "\textit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern
> (1 0 1 0) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of
>  Deportations on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1
>  dpt_tot_prop active_exp_w1 active_exp cons_exp_2004_w1 cons_exp_2004) stats(N F Fp widstat, fmt(0 3 3
>  3) label(Observations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust
>  standard errors in parentheses. All models contain state and year fixed effects.") collabels(none) no
> obs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_2004.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_2004.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_2
> 004.tex", append refcat(sc_cons_2004 "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(*
>  0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_2004 "\hspace{0.5cm} Policy $\times$ Partisanship (2
> 004)" active_exp "\hspace{0.5cm} Policy" cons_exp_2004 "\hspace{0.5cm} Partisanship (2004)" pop "\hspa
> ce{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} 
> Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_2004_w1 sc_cons_2004 active
> _exp_w1 active_exp cons_exp_2004_w1 cons_exp_2004) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_2004.tex)

. 
. /** Mean vote share from 2000 to 2004 **/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_0004) active_exp cons_exp_0004 ib(first).yr ib(first).mx_
> id, robust first savefirst savefprefix(est1_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_0004 |   651.8727    185.168     3.52   0.000     287.9304    1015.815
   active_exp |  -1988.275   674.6121    -2.95   0.003    -3314.206   -662.3454
cons_exp_0004 |  -2139.855   2181.676    -0.98   0.327    -6427.875    2148.165
              |
           yr |
        2004  |   263.4063   578.0776     0.46   0.649    -872.7883    1399.601
        2005  |   17.15623   583.8551     0.03   0.977    -1130.394    1164.706
        2006  |   713.9688   524.4482     1.36   0.174    -316.8187    1744.756
        2007  |   2480.031   435.1157     5.70   0.000     1624.824    3335.238
        2008  |   4904.286   508.6721     9.64   0.000     3904.506    5904.066
        2009  |   6156.625   617.1344     9.98   0.000     4943.666    7369.585
        2010  |   7472.891   952.6207     7.84   0.000     5600.543    9345.239
        2011  |   9406.596   1312.985     7.16   0.000     6825.963    11987.23
        2012  |   9463.198   1389.986     6.81   0.000     6731.221    12195.18
        2013  |   7498.089    1306.73     5.74   0.000      4929.75    10066.43
        2014  |   5533.964    1292.69     4.28   0.000      2993.22    8074.708
        2015  |   4558.464   1290.842     3.53   0.000     2021.352    7095.576
        2016  |   4582.433   1285.549     3.56   0.000     2055.725    7109.141
        2017  |   1298.964   1445.593     0.90   0.369    -1542.307    4140.235
              |
        mx_id |
           2  |  -10992.22   718.5721   -15.30   0.000    -12404.55   -9579.884
           3  |  -14482.61   3110.937    -4.66   0.000    -20597.07   -8368.156
           4  |  -14356.18   3365.042    -4.27   0.000    -20970.07   -7742.288
           5  |  -10517.16   2411.757    -4.36   0.000     -15257.4   -5776.926
           6  |  -12975.35   3250.209    -3.99   0.000    -19363.54   -6587.156
           7  |   -12135.9   1884.403    -6.44   0.000    -15839.64   -8432.165
           8  |  -7706.909   1865.248    -4.13   0.000       -11373    -4040.82
           9  |  -8295.941   1115.987    -7.43   0.000    -10489.38   -6102.502
          10  |  -389.3858   927.4435    -0.42   0.675    -2212.249    1433.477
          11  |  -6497.745   619.9326   -10.48   0.000    -7716.204   -5279.285
          12  |   7382.487   2222.214     3.32   0.001     3014.792    11750.18
          13  |  -8000.717   1876.441    -4.26   0.000    -11688.81   -4312.628
          14  |  -7271.861   1228.087    -5.92   0.000     -9685.63   -4858.092
          15  |  -4024.069   813.4265    -4.95   0.000    -5622.834   -2425.303
          16  |   -1170.78   1850.689    -0.63   0.527    -4808.255    2466.695
          17  |  -2949.512   569.0373    -5.18   0.000    -4067.938   -1831.086
          18  |  -1795.271   1363.005    -1.32   0.188    -4474.217    883.6743
          19  |  -6770.814   552.1942   -12.26   0.000    -7856.135   -5685.492
          20  |  -5900.856    1229.52    -4.80   0.000    -8317.442    -3484.27
          21  |  -9728.494   1698.488    -5.73   0.000    -13066.82   -6390.165
          22  |   1618.075   1004.777     1.61   0.108    -356.7859    3592.935
          23  |  -13667.71   3654.431    -3.74   0.000    -20850.39   -6485.035
          24  |   2383.637   2158.902     1.10   0.270    -1859.621    6626.896
          25  |    -8025.9   1009.328    -7.95   0.000     -10009.7   -6042.096
          26  |  -6955.281   1042.547    -6.67   0.000    -9004.376   -4906.185
          27  |  -13140.33   3296.531    -3.99   0.000    -19619.57   -6661.098
          28  |  -6107.576   473.6597   -12.89   0.000     -7038.54   -5176.612
          29  |   -10309.4   1680.255    -6.14   0.000    -13611.89   -7006.908
          30  |  -7214.831   1629.374    -4.43   0.000    -10417.32   -4012.344
          31  |  -11367.87   933.0581   -12.18   0.000    -13201.77   -9533.969
          32  |          0  (omitted)
              |
        _cons |   14526.21   5399.371     2.69   0.007     3913.901    25138.51
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    12.39
  Prob > F      =   0.0005
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    12.39
  Prob > F      =   0.0005



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      12.39    0.0005 |       13.77   0.0002 |       12.39

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.34    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      19.41
Kleibergen-Paap Wald rk F statistic                                12.39

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.72     P-val=0.0099
Anderson-Rubin Wald test           Chi-sq(1)=      7.47     P-val=0.0063
Stock-Wright LM S statistic        Chi-sq(1)=      9.11     P-val=0.0025

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   141.82
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9474
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9768
Residual SS             =  9529537.393                Root MSE      =    140.9

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |   .0355732   .0147287     2.42   0.016     .0067054    .0644409
   active_exp |   -7.05756   9.118517    -0.77   0.439    -24.92952     10.8144
cons_exp_0004 |  -724.1722   111.4784    -6.50   0.000    -942.6659   -505.6786
              |
           yr |
        2004  |     90.413   33.89425     2.67   0.008      23.9815    156.8445
        2005  |   204.0642   33.32444     6.12   0.000     138.7495    269.3789
        2006  |   300.4815   41.79324     7.19   0.000     218.5683    382.3948
        2007  |   253.0316    53.9471     4.69   0.000     147.2972    358.7659
        2008  |   139.2936   79.07634     1.76   0.078    -15.69317    294.2804
        2009  |  -15.08932   92.68144    -0.16   0.871    -196.7416     166.563
        2010  |   -10.2783   88.79638    -0.12   0.908     -184.316    163.7594
        2011  |  -7.069692   106.7175    -0.07   0.947    -216.2322    202.0928
        2012  |  -10.50747   103.4475    -0.10   0.919    -213.2609    192.2459
        2013  |   59.57322   78.79456     0.76   0.450    -94.86127    214.0077
        2014  |     171.46   59.28924     2.89   0.004     55.25526    287.6648
        2015  |   241.7082    49.7944     4.85   0.000      144.113    339.3034
        2016  |   309.8714    51.6842     6.00   0.000     208.5723    411.1706
        2017  |   38.13107   60.14618     0.63   0.526    -79.75327    156.0154
              |
        mx_id |
           2  |   310.6556   177.9051     1.75   0.081    -38.03202    659.3432
           3  |  -1001.493   250.8196    -3.99   0.000     -1493.09   -509.8951
           4  |  -1093.507   249.5336    -4.38   0.000    -1582.584   -604.4302
           5  |  -316.9776   189.2138    -1.68   0.094    -687.8298    53.87451
           6  |  -707.5766   231.7967    -3.05   0.002     -1161.89   -253.2635
           7  |   465.3605   203.1675     2.29   0.022     67.15952    863.5615
           8  |  -557.4353   138.3975    -4.03   0.000    -828.6893   -286.1812
           9  |     349.73   137.2985     2.55   0.011     80.62977    618.8302
          10  |  -227.7261   41.87529    -5.44   0.000    -309.8001    -145.652
          11  |   1225.757   117.0761    10.47   0.000     996.2919    1455.222
          12  |   1813.128   156.6432    11.57   0.000     1506.113    2120.143
          13  |   382.1781   145.7765     2.62   0.009     96.46149    667.8947
          14  |    146.903   121.3809     1.21   0.226    -90.99927    384.8052
          15  |   1728.132       93.3    18.52   0.000     1545.267    1910.997
          16  |   2403.888   113.6546    21.15   0.000     2181.129    2626.647
          17  |   190.4708   51.89452     3.67   0.000     88.75945    292.1822
          18  |   343.2749   77.64197     4.42   0.000     191.0994    495.4504
          19  |   74.61553   107.0375     0.70   0.486     -135.174    284.4051
          20  |   574.9251   110.2881     5.21   0.000     358.7644    791.0858
          21  |   627.1278    172.097     3.64   0.000     289.8239    964.4317
          22  |  -48.54577   54.33713    -0.89   0.372    -155.0446    57.95304
          23  |  -1199.243   250.8267    -4.78   0.000    -1690.854   -707.6314
          24  |   809.6014   118.9677     6.81   0.000     576.4289    1042.774
          25  |   557.1395   130.7927     4.26   0.000     300.7906    813.4884
          26  |  -175.7916   114.9115    -1.53   0.126    -401.0141    49.43089
          27  |  -1043.464   236.8461    -4.41   0.000    -1507.674   -579.2543
          28  |   264.2153   96.23584     2.75   0.006     75.59652    452.8341
          29  |   -420.401   169.5345    -2.48   0.013    -752.6825   -88.11959
          30  |   469.9135   138.8527     3.38   0.001     197.7671    742.0598
          31  |  -150.0351   177.3215    -0.85   0.397    -497.5788    197.5086
          32  |          0  (omitted)
              |
        _cons |   1692.448   321.0929     5.27   0.000     1063.118    2321.779
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.335
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               19.405
                         (Kleibergen-Paap rk Wald F statistic):         12.393
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_0004 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id
Excluded instruments: sc_cons_0004
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_0004) active_exp cons_exp_0004 pop ann_pr_mx avg_tmp_mx i
> b(first).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_0004 |   658.8241   188.3149     3.50   0.001     288.6895    1028.959
   active_exp |  -2050.695    688.401    -2.98   0.003    -3403.754   -697.6368
cons_exp_0004 |  -564.5292   2222.154    -0.25   0.800    -4932.192    3803.134
          pop |   1019.672   521.3315     1.96   0.051    -5.009938    2044.354
    ann_pr_mx |   .6786527   .5048118     1.34   0.180    -.3135595    1.670865
   avg_tmp_mx |  -447.7388   239.8625    -1.87   0.063    -919.1907    23.71313
              |
           yr |
        2004  |   255.6426   615.1613     0.42   0.678    -953.4626    1464.748
        2005  |   299.6515   638.7381     0.47   0.639    -955.7941    1555.097
        2006  |   948.7929   621.3202     1.53   0.127    -272.4177    2170.003
        2007  |   2614.588   548.8048     4.76   0.000     1535.907    3693.269
        2008  |   4900.446   593.2131     8.26   0.000      3734.48    6066.412
        2009  |   6416.543   740.4254     8.67   0.000     4961.231    7871.856
        2010  |   7347.109   997.3344     7.37   0.000     5386.839    9307.379
        2011  |   9665.971   1345.293     7.19   0.000     7021.786    12310.16
        2012  |   9625.481   1430.407     6.73   0.000     6814.002    12436.96
        2013  |   7440.054   1325.976     5.61   0.000     4833.836    10046.27
        2014  |   5450.303   1307.087     4.17   0.000     2881.213    8019.394
        2015  |   4592.285   1312.533     3.50   0.001      2012.49     7172.08
        2016  |    4616.98    1309.47     3.53   0.000     2043.205    7190.755
        2017  |  -3020.772   3189.677    -0.95   0.344    -9290.111    3248.566
              |
        mx_id |
           2  |  -12493.52   1171.222   -10.67   0.000    -14795.56   -10191.47
           3  |  -9243.337   3696.653    -2.50   0.013    -16509.14   -1977.532
           4  |  -8389.924   4308.865    -1.95   0.052    -16859.04    79.18826
           5  |  -10343.94   3417.557    -3.03   0.003    -17061.17   -3626.695
           6  |  -13237.67    3364.63    -3.93   0.000    -19850.88   -6624.462
           7  |  -21211.13   4593.348    -4.62   0.000     -30239.4   -12182.86
           8  |   -6533.15   2170.803    -3.01   0.003    -10799.88   -2266.417
           9  |  -4892.085   2148.688    -2.28   0.023    -9115.351   -668.8192
          10  |  -385.7896   943.8885    -0.41   0.683    -2241.011    1469.432
          11  |  -21423.06   7283.683    -2.94   0.003    -35739.21   -7106.919
          12  |   2431.577   3302.155     0.74   0.462    -4058.839    8921.993
          13  |  -6223.797   2685.946    -2.32   0.021    -11503.05   -944.5453
          14  |  -8548.737   1387.336    -6.16   0.000    -11275.56   -5821.915
          15  |  -9503.625   3236.352    -2.94   0.003     -15864.7   -3142.545
          16  |  -3725.633   2614.521    -1.42   0.155    -8864.497    1413.231
          17  |   -1777.05   1189.811    -1.49   0.136    -4115.634    561.5348
          18  |  -924.7049   1602.382    -0.58   0.564    -4074.201    2224.791
          19  |  -8390.029   1942.247    -4.32   0.000    -12207.53   -4572.524
          20  |  -6255.119   1982.373    -3.16   0.002    -10151.49   -2358.746
          21  |  -12823.74    2783.19    -4.61   0.000    -18294.13   -7353.359
          22  |   69.40116   1137.102     0.06   0.951    -2165.584    2304.386
          23  |  -7902.523   4572.535    -1.73   0.085    -16889.88    1084.837
          24  |   585.8144   2366.645     0.25   0.805    -4065.848    5237.477
          25  |  -7271.245    1819.45    -4.00   0.000    -10847.39   -3695.099
          26  |  -5897.435   1545.037    -3.82   0.000     -8934.22    -2860.65
          27  |  -8858.377   4237.713    -2.09   0.037    -17187.64   -529.1144
          28  |  -6026.324   1538.749    -3.92   0.000     -9050.75   -3001.898
          29  |  -9914.472   1702.004    -5.83   0.000    -13259.78   -6569.167
          30  |  -10485.81   3782.653    -2.77   0.006    -17920.65   -3050.975
          31  |  -8040.118   2387.014    -3.37   0.001    -12731.82    -3348.42
          32  |          0  (omitted)
              |
        _cons |   16913.52   6250.982     2.71   0.007     4627.156    29199.88
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    12.24
  Prob > F      =   0.0005
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    12.24
  Prob > F      =   0.0005



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      12.24    0.0005 |       13.69   0.0002 |       12.24

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.18    P-val=0.0005

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      19.94
Kleibergen-Paap Wald rk F statistic                                12.24

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       6.00     P-val=0.0147
Anderson-Rubin Wald test           Chi-sq(1)=      6.71     P-val=0.0096
Stock-Wright LM S statistic        Chi-sq(1)=      9.21     P-val=0.0024

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   144.13
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9503
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9781
Residual SS             =  9002310.702                Root MSE      =    136.9

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |   .0326428   .0138903     2.35   0.019     .0054183    .0598672
   active_exp |  -5.130375    8.29248    -0.62   0.536    -21.38334    11.12259
cons_exp_0004 |  -765.7791   122.2114    -6.27   0.000    -1005.309   -526.2493
          pop |  -86.26423   63.91671    -1.35   0.177    -211.5387    39.01022
    ann_pr_mx |    .037911   .0345162     1.10   0.272    -.0297396    .1055615
   avg_tmp_mx |  -15.08019   15.31795    -0.98   0.325    -45.10282    14.94245
              |
           yr |
        2004  |      99.56   37.67736     2.64   0.008     25.71374    173.4063
        2005  |   229.4344   37.98389     6.04   0.000     154.9873    303.8814
        2006  |   334.2668   46.33528     7.21   0.000     243.4513    425.0822
        2007  |   295.4144   56.97543     5.18   0.000     183.7446    407.0842
        2008  |   190.1553   77.78715     2.44   0.015     37.69527    342.6153
        2009  |   55.30408   94.93084     0.58   0.560    -130.7569    241.3651
        2010  |   44.34802   87.19731     0.51   0.611    -126.5556    215.2516
        2011  |   68.08869   109.8995     0.62   0.536    -147.3104    283.4878
        2012  |   64.86176   106.7219     0.61   0.543    -144.3093    274.0328
        2013  |    123.802    81.7683     1.51   0.130     -36.4609    284.0649
        2014  |   234.2824   66.43803     3.53   0.000     104.0662    364.4985
        2015  |    311.853   60.87803     5.12   0.000     192.5343    431.1717
        2016  |   385.0729   62.06202     6.20   0.000     263.4336    506.7122
        2017  |   -28.5729   184.4322    -0.15   0.877    -390.0533    332.9075
              |
        mx_id |
           2  |   447.7251   215.1831     2.08   0.037     25.97395    869.4763
           3  |   -1066.48   245.6775    -4.34   0.000    -1547.999   -584.9609
           4  |  -1132.954   262.0638    -4.32   0.000     -1646.59   -619.3186
           5  |  -41.36532   269.5426    -0.15   0.878    -569.6592    486.9285
           6  |  -625.5198    233.202    -2.68   0.007    -1082.587   -168.4522
           7  |   955.6072   524.6579     1.82   0.069    -72.70351    1983.918
           8  |  -439.1076   143.7445    -3.05   0.002    -720.8416   -157.3736
           9  |   390.3649   143.8758     2.71   0.007     108.3736    672.3562
          10  |  -215.7121   41.57725    -5.19   0.000     -297.202   -134.2222
          11  |   2338.506    912.959     2.56   0.010     549.1391    4127.872
          12  |   2221.557   313.5532     7.09   0.000     1607.004     2836.11
          13  |   581.3486    187.375     3.10   0.002     214.1005    948.5968
          14  |   192.3931   139.9475     1.37   0.169      -81.899    466.6852
          15  |   2274.844   407.7812     5.58   0.000     1475.607     3074.08
          16  |   2738.744   261.5185    10.47   0.000     2226.177    3251.311
          17  |   269.7017   78.88086     3.42   0.001     115.0981    424.3054
          18  |   374.5671    92.4259     4.05   0.000     193.4157    555.7186
          19  |   397.0154   241.9705     1.64   0.101    -77.23807    871.2689
          20  |   782.7587    181.935     4.30   0.000     426.1727    1139.345
          21  |   957.8785   316.3964     3.03   0.002      337.753    1578.004
          22  |  -28.94957   69.16108    -0.42   0.676    -164.5028    106.6036
          23  |  -1193.224   264.9465    -4.50   0.000    -1712.509   -673.9379
          24  |   987.5502   169.2594     5.83   0.000     655.8079    1319.292
          25  |   758.4067    176.761     4.29   0.000     411.9616    1104.852
          26  |  -32.92426   132.5863    -0.25   0.804    -292.7886    226.9401
          27  |  -981.0081   248.3731    -3.95   0.000     -1467.81   -494.2057
          28  |   478.3874   165.8197     2.88   0.004     153.3868     803.388
          29  |  -525.7257   164.3617    -3.20   0.001    -847.8688   -203.5827
          30  |   1008.952   408.3369     2.47   0.013     208.6266    1809.278
          31  |   -28.0612   182.9074    -0.15   0.878    -386.5532    330.4308
          32  |          0  (omitted)
              |
        _cons |   2135.662    432.982     4.93   0.000     1287.033    2984.291
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.176
                                                   Chi-sq(1) P-val =    0.0005
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               19.935
                         (Kleibergen-Paap rk Wald F statistic):         12.240
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_0004 pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_0004
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 cons_exp_0004, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. gen sc_cons_0004_w1 = active_exp_w1*cons_exp_0004_w1

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_0004_w1) active_exp_w1 cons_exp_0004_w1 ib(first).y
> r ib(first).mx_id, robust first savefirst savefprefix(est3_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_0004_w1 |   612.2334   176.4111     3.47   0.001     265.5026    958.9641
   active_exp_w1 |  -1856.406   646.7418    -2.87   0.004    -3127.558   -585.2545
cons_exp_0004_w1 |  -2084.404   2205.049    -0.95   0.345    -6418.363    2249.555
                 |
              yr |
           2004  |   263.4063   567.2165     0.46   0.643     -851.441    1378.254
           2005  |   18.70292   573.2348     0.03   0.974    -1107.973    1145.379
           2006  |   713.9688   513.3469     1.39   0.165    -294.9995    1722.937
           2007  |   2480.031   426.0559     5.82   0.000     1642.631    3317.432
           2008  |   4902.525   504.1016     9.73   0.000     3911.728    5893.322
           2009  |   6138.029   615.1131     9.98   0.000     4929.043    7347.016
           2010  |   7368.411   933.7862     7.89   0.000     5533.081     9203.74
           2011  |   9102.116   1227.571     7.41   0.000     6689.361    11514.87
           2012  |   9188.791   1324.364     6.94   0.000     6585.794    11791.79
           2013  |   7327.755   1277.608     5.74   0.000     4816.653    9838.856
           2014  |    5363.63   1259.396     4.26   0.000     2888.324    7838.935
           2015  |    4388.13    1253.15     3.50   0.001       1925.1    6851.159
           2016  |   4412.098   1247.246     3.54   0.000     1960.674    6863.523
           2017  |   1132.998   1405.605     0.81   0.421    -1629.678    3895.674
                 |
           mx_id |
              2  |  -11010.21   717.8927   -15.34   0.000     -12421.2   -9599.208
              3  |  -14419.49   3140.436    -4.59   0.000    -20591.92   -8247.056
              4  |  -14269.09   3395.017    -4.20   0.000    -20941.89   -7596.279
              5  |  -10485.41   2434.562    -4.31   0.000    -15270.47   -5700.345
              6  |  -12898.79   3279.893    -3.93   0.000    -19345.32   -6452.253
              7  |  -12126.35   1900.048    -6.38   0.000    -15860.83   -8391.857
              8  |  -7679.178   1882.239    -4.08   0.000    -11378.66   -3979.693
              9  |  -8292.804   1127.647    -7.35   0.000    -10509.16   -6076.447
             10  |  -388.0839     934.59    -0.42   0.678    -2224.993    1448.825
             11  |  -6500.147   623.4429   -10.43   0.000    -7725.505   -5274.788
             12  |   6830.245     2111.6     3.23   0.001     2679.958    10980.53
             13  |  -7983.778   1894.271    -4.21   0.000    -11706.91   -4260.645
             14  |  -7263.922   1238.331    -5.87   0.000    -9697.825   -4830.019
             15  |      -4026    826.956    -4.87   0.000    -5651.357   -2400.642
             16  |  -1143.269   1873.313    -0.61   0.542    -4825.211    2538.673
             17  |  -2954.271   578.4531    -5.11   0.000    -4091.204   -1817.339
             18  |  -1785.462   1379.117    -1.29   0.196    -4496.077    925.1519
             19  |  -6765.036   556.0651   -12.17   0.000    -7857.966   -5672.106
             20  |  -5902.743   1240.866    -4.76   0.000    -8341.628   -3463.857
             21  |  -9727.501   1712.465    -5.68   0.000     -13093.3   -6361.701
             22  |   1617.001   1015.531     1.59   0.112    -378.9959    3612.997
             23  |  -13574.52   3688.318    -3.68   0.000     -20823.8   -6325.235
             24  |    2421.95   2188.268     1.11   0.269    -1879.027    6722.927
             25  |  -8027.839   1013.949    -7.92   0.000    -10020.73   -6034.953
             26  |  -6962.845   1044.643    -6.67   0.000     -9016.06   -4909.629
             27  |  -13066.82   3327.039    -3.93   0.000    -19606.02   -6527.627
             28  |  -6102.321   479.8911   -12.72   0.000    -7045.533   -5159.109
             29  |  -10301.41   1692.416    -6.09   0.000     -13627.8   -6975.014
             30  |  -7194.237   1643.621    -4.38   0.000    -10424.73   -3963.747
             31  |  -11383.44   934.9222   -12.18   0.000       -13221   -9545.875
             32  |          0  (omitted)
                 |
           _cons |   14409.62   5454.071     2.64   0.009     3689.808    25129.44
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    12.04
  Prob > F      =   0.0006
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    12.04
  Prob > F      =   0.0006



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      12.04    0.0006 |       13.38   0.0003 |       12.04

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.95    P-val=0.0005

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      18.21
Kleibergen-Paap Wald rk F statistic                                12.04

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.26     P-val=0.0127
Anderson-Rubin Wald test           Chi-sq(1)=      6.96     P-val=0.0084
Stock-Wright LM S statistic        Chi-sq(1)=      8.25     P-val=0.0041

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   146.59
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9483
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9772
Residual SS             =   9320972.51                Root MSE      =    139.4

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |   .0359875    .015201     2.37   0.018     .0061941    .0657809
   active_exp_w1 |  -7.869554   9.133085    -0.86   0.389    -25.77007    10.03096
cons_exp_0004_w1 |    -722.77   112.9399    -6.40   0.000    -944.1281   -501.4119
                 |
              yr |
           2004  |   90.33976   34.06085     2.65   0.008     23.58173    157.0978
           2005  |   203.8295   33.46264     6.09   0.000     138.2439    269.4151
           2006  |   300.0138   41.84285     7.17   0.000     218.0033    382.0242
           2007  |   251.8321   54.55678     4.62   0.000     144.9027    358.7614
           2008  |   137.1335   81.09046     1.69   0.091    -21.80092    296.0678
           2009  |  -17.33722   95.47694    -0.18   0.856    -204.4686    169.7941
           2010  |  -10.80204   90.62488    -0.12   0.905    -188.4235    166.8195
           2011  |  -1.663412   106.9685    -0.02   0.988    -211.3178     207.991
           2012  |  -6.424535   104.0859    -0.06   0.951    -210.4292    197.5801
           2013  |   60.64418   79.45455     0.76   0.445    -95.08388    216.3722
           2014  |   173.3448   59.08478     2.93   0.003     57.54074    289.1488
           2015  |   243.6475   49.24367     4.95   0.000     147.1317    340.1633
           2016  |   305.1309   51.86382     5.88   0.000     203.4796    406.7821
           2017  |   41.61329    60.5678     0.69   0.492    -77.09743     160.324
                 |
           mx_id |
              2  |   315.6617   183.3831     1.72   0.085    -43.76254     675.086
              3  |  -995.1703   257.2329    -3.87   0.000    -1499.338    -491.003
              4  |  -1088.019   255.6611    -4.26   0.000    -1589.105   -586.9322
              5  |  -312.6344   194.0354    -1.61   0.107    -692.9368    67.66801
              6  |  -702.5514   237.4206    -2.96   0.003    -1167.887   -237.2156
              7  |   470.5354   208.8427     2.25   0.024     61.21125    879.8595
              8  |  -554.4111   141.9048    -3.91   0.000    -832.5393   -276.2829
              9  |   353.3576   141.0349     2.51   0.012     76.93434    629.7808
             10  |  -227.5776   42.58237    -5.34   0.000    -311.0375   -144.1177
             11  |   1228.503   119.6926    10.26   0.000     993.9102    1463.097
             12  |   1830.472   153.3402    11.94   0.000     1529.931    2131.013
             13  |   385.5253   149.5131     2.58   0.010     92.48503    678.5656
             14  |   149.8993   124.7851     1.20   0.230    -94.67491    394.4736
             15  |   1729.945   95.06385    18.20   0.000     1543.624    1916.267
             16  |   2388.544   111.2013    21.48   0.000     2170.593    2606.494
             17  |   191.7898   53.31301     3.60   0.000      87.2982    296.2814
             18  |   344.1079   78.62253     4.38   0.000     190.0106    498.2052
             19  |   77.24918   110.1313     0.70   0.483    -138.6042    293.1026
             20  |   577.5513   113.1489     5.10   0.000     355.7835    799.3191
             21  |   631.4121   176.8115     3.57   0.000     284.8679    977.9563
             22  |  -49.21596   55.15135    -0.89   0.372    -157.3106     58.8787
             23  |  -1193.976   256.6486    -4.65   0.000    -1696.998   -690.9536
             24  |   808.0787   120.4964     6.71   0.000     571.9102    1044.247
             25  |   560.6807   134.5218     4.17   0.000     297.0229    824.3385
             26  |  -172.6908     118.32    -1.46   0.144    -404.5937    59.21215
             27  |  -1038.302   242.5704    -4.28   0.000    -1513.731   -562.8727
             28  |    266.554   98.95528     2.69   0.007      72.6052    460.5028
             29  |  -416.0183   174.4577    -2.38   0.017     -757.949   -74.08752
             30  |   472.7743   141.8193     3.33   0.001     194.8136    750.7349
             31  |  -144.9419   183.0141    -0.79   0.428    -503.6429    213.7591
             32  |          0  (omitted)
                 |
           _cons |    1685.37   327.7703     5.14   0.000     1042.952    2327.788
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.950
                                                   Chi-sq(1) P-val =    0.0005
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               18.210
                         (Kleibergen-Paap rk Wald F statistic):         12.044
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_0004_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id
Excluded instruments: sc_cons_0004_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_0004_w1) active_exp_w1 cons_exp_0004_w1 pop ann_pr_
> mx avg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_0004_w1 |   617.9377   178.8609     3.45   0.001      266.385    969.4903
   active_exp_w1 |  -1913.551   657.6342    -2.91   0.004    -3206.137   -620.9649
cons_exp_0004_w1 |  -548.5669   2243.122    -0.24   0.807    -4957.443     3860.31
             pop |   953.1093   495.8245     1.92   0.055    -21.43829    1927.657
       ann_pr_mx |   .7039654   .4983501     1.41   0.159    -.2755462    1.683477
      avg_tmp_mx |  -452.8318   236.9615    -1.91   0.057    -918.5819    12.91824
                 |
              yr |
           2004  |   263.3795   603.9054     0.44   0.663    -923.6021    1450.361
           2005  |   318.3464   629.5716     0.51   0.613    -919.0824    1555.775
           2006  |   971.1628   610.7023     1.59   0.113    -229.1782    2171.504
           2007  |   2640.203   540.9049     4.88   0.000      1577.05    3703.356
           2008  |   4926.341   589.0132     8.36   0.000      3768.63    6084.052
           2009  |    6434.39   739.1153     8.71   0.000     4981.652    7887.127
           2010  |     7269.6   983.9472     7.39   0.000     5335.643    9203.558
           2011  |   9395.267   1276.147     7.36   0.000     6886.988    11903.55
           2012  |   9386.015   1376.733     6.82   0.000     6680.033       12092
           2013  |   7302.363   1305.402     5.59   0.000     4736.583    9868.143
           2014  |   5315.728   1283.467     4.14   0.000     2793.062    7838.394
           2015  |   4463.637   1286.035     3.47   0.001     1935.923    6991.351
           2016  |   4491.455   1283.941     3.50   0.001     1967.857    7015.053
           2017  |  -3177.347     3139.7    -1.01   0.312    -9348.455    2993.761
                 |
           mx_id |
              2  |  -12383.44   1139.471   -10.87   0.000    -14623.08    -10143.8
              3  |  -9247.241   3707.837    -2.49   0.013    -16535.03   -1959.453
              4  |  -8369.137    4313.55    -1.94   0.053    -16847.46    109.1857
              5  |  -10125.68   3374.595    -3.00   0.003    -16758.48   -3492.886
              6  |  -13080.05   3379.341    -3.87   0.000    -19722.17   -6437.919
              7  |     -20770    4455.02    -4.66   0.000    -29526.39   -12013.62
              8  |  -6425.452   2170.045    -2.96   0.003     -10690.7   -2160.208
              9  |   -4885.17   2139.226    -2.28   0.023    -9089.838   -680.5017
             10  |  -376.6077   949.0477    -0.40   0.692     -2241.97    1488.754
             11  |  -20540.37   6940.092    -2.96   0.003    -34181.18   -6899.552
             12  |   2181.159   3186.455     0.68   0.494    -4081.848    8444.167
             13  |  -6084.453   2665.046    -2.28   0.023    -11322.63   -846.2806
             14  |  -8485.549   1384.611    -6.13   0.000    -11207.01   -5764.084
             15  |  -9088.713   3073.571    -2.96   0.003    -15129.84   -3047.582
             16  |  -3454.217   2551.283    -1.35   0.176    -8468.788    1560.354
             17  |  -1740.103   1182.121    -1.47   0.142    -4063.572    583.3659
             18  |   -905.045   1610.376    -0.56   0.574    -4070.254    2260.164
             19  |  -8145.856   1854.587    -4.39   0.000    -11791.06   -4500.649
             20  |  -6112.952   1944.613    -3.14   0.002    -9935.108   -2290.797
             21  |  -12562.36   2708.352    -4.64   0.000    -17885.65   -7239.073
             22  |   91.94308   1138.897     0.08   0.936    -2146.568    2330.455
             23  |  -7846.195   4579.925    -1.71   0.087    -16848.08     1155.69
             24  |   752.7802   2364.522     0.32   0.750    -3894.709    5400.269
             25  |  -7136.752   1783.932    -4.00   0.000    -10643.09   -3630.418
             26  |  -5809.125   1526.782    -3.80   0.000    -8810.029    -2808.22
             27  |  -8775.217   4237.287    -2.07   0.039    -17103.64    -446.792
             28  |  -5873.301   1490.141    -3.94   0.000    -8802.186   -2944.416
             29  |   -9962.55    1709.82    -5.83   0.000    -13323.22   -6601.883
             30  |   -10077.4   3639.739    -2.77   0.006    -17231.34   -2923.457
             31  |  -7994.397   2359.414    -3.39   0.001    -12631.85   -3356.948
             32  |          0  (omitted)
                 |
           _cons |      17024   6262.614     2.72   0.007     4714.776    29333.23
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    11.94
  Prob > F      =   0.0006
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    11.94
  Prob > F      =   0.0006



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      11.94    0.0006 |       13.35   0.0003 |       11.94

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.83    P-val=0.0006

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      18.68
Kleibergen-Paap Wald rk F statistic                                11.94

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       5.55     P-val=0.0189
Anderson-Rubin Wald test           Chi-sq(1)=      6.21     P-val=0.0127
Stock-Wright LM S statistic        Chi-sq(1)=      8.32     P-val=0.0039

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   149.15
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9511
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9785
Residual SS             =  8808797.687                Root MSE      =    135.5

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |   .0329553   .0143531     2.30   0.022     .0048237    .0610869
   active_exp_w1 |  -5.992696   8.262669    -0.73   0.468    -22.18723    10.20184
cons_exp_0004_w1 |  -763.4384   122.9271    -6.21   0.000    -1004.371   -522.5057
             pop |  -84.21171   63.88293    -1.32   0.187      -209.42    40.99654
       ann_pr_mx |   .0384901   .0343149     1.12   0.262    -.0287658    .1057461
      avg_tmp_mx |  -14.81218   15.50687    -0.96   0.339    -45.20509    15.58073
                 |
              yr |
           2004  |   99.70216   37.79234     2.64   0.008     25.63054    173.7738
           2005  |   229.3088   38.11656     6.02   0.000     154.6017    304.0159
           2006  |   333.9265   46.42251     7.19   0.000       242.94    424.9129
           2007  |   294.4285   57.48739     5.12   0.000     181.7553    407.1017
           2008  |   188.3497   79.59056     2.37   0.018      32.3551    344.3444
           2009  |    53.3877   97.55926     0.55   0.584    -137.8249    244.6003
           2010  |   44.27481    88.6736     0.50   0.618    -129.5222    218.0719
           2011  |   73.46441   110.1636     0.67   0.505    -142.4522    289.3811
           2012  |   69.01653   107.2625     0.64   0.520    -141.2141    279.2472
           2013  |   124.9601   82.25269     1.52   0.129    -36.25216    286.1725
           2014  |   235.9597   66.14988     3.57   0.000     106.3083    365.6111
           2015  |   313.3715   60.30637     5.20   0.000     195.1732    431.5698
           2016  |    379.787   62.36322     6.09   0.000     257.5574    502.0167
           2017  |  -22.86085   187.2632    -0.12   0.903      -389.89    344.1683
                 |
           mx_id |
              2  |   448.0517   219.4331     2.04   0.041      17.9708    878.1326
              3  |  -1059.787   248.8702    -4.26   0.000    -1547.564   -572.0106
              4  |  -1128.804   264.4231    -4.27   0.000    -1647.064   -610.5443
              5  |  -46.46551   271.1619    -0.17   0.864     -577.933     485.002
              6  |  -624.1867   237.5366    -2.63   0.009     -1089.75   -158.6234
              7  |   945.9701   527.6877     1.79   0.073    -88.27873    1980.219
              8  |  -439.5706    145.522    -3.02   0.003    -724.7884   -154.3528
              9  |   391.7583   145.2351     2.70   0.007     107.1028    676.4138
             10  |  -215.9914   42.09545    -5.13   0.000     -298.497   -133.4858
             11  |   2312.694   913.0579     2.53   0.011     523.1338    4102.255
             12  |   2228.621   312.7574     7.13   0.000     1615.627    2841.614
             13  |   578.7222   188.5714     3.07   0.002      209.129    948.3155
             14  |   192.7802   142.9305     1.35   0.177     -87.3584    472.9188
             15  |   2262.716   407.7053     5.55   0.000     1463.628    3061.804
             16  |   2715.183   259.4216    10.47   0.000     2206.726     3223.64
             17  |   268.4338   79.21739     3.39   0.001     113.1705     423.697
             18  |   373.7697    92.9348     4.02   0.000     191.6209    555.9186
             19  |    391.132   242.7098     1.61   0.107    -84.57044    866.8345
             20  |   778.8246   182.7896     4.26   0.000     420.5635    1137.086
             21  |     951.99   318.3457     2.99   0.003     328.0439    1575.936
             22  |  -30.38058   69.39688    -0.44   0.662     -166.396    105.6348
             23  |  -1190.332    267.127    -4.46   0.000    -1713.892   -666.7733
             24  |   982.1938   169.9655     5.78   0.000     649.0675     1315.32
             25  |   756.0438   178.1076     4.24   0.000     406.9593    1105.128
             26  |  -33.81406   134.0622    -0.25   0.801    -296.5711     228.943
             27  |  -980.4217   250.5912    -3.91   0.000    -1471.571   -489.2719
             28  |   474.7094   166.5189     2.85   0.004     148.3384    801.0804
             29  |  -521.2008    168.924    -3.09   0.002    -852.2857   -190.1159
             30  |   996.7182   408.7071     2.44   0.015      195.667    1797.769
             31  |  -27.88482   185.2032    -0.15   0.880    -390.8764    335.1068
             32  |          0  (omitted)
                 |
           _cons |   2119.926   440.7447     4.81   0.000     1256.082    2983.769
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.834
                                                   Chi-sq(1) P-val =    0.0006
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               18.680
                         (Kleibergen-Paap rk Wald F statistic):         11.936
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_0004_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_0004_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Set notes in \scriptsize. Next, move final eight lines of firs
> t table to end of second table. Delete \midrule between the tables. Penultimately, consolidate notes b
> y moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which sho
> uld sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleibergen-Paap F 
> statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_0004.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}
> ", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0
> .5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_0004 "\hspace{0.5cm} Partisanship (200
> 0--2004)" pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp
> _mx "\hspace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\
> textit{2}" "\textit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", p
> attern(1 0 1 0) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Eff
> ect of Deportations on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_p
> rop_w1 dpt_tot_prop active_exp_w1 active_exp cons_exp_0004_w1 cons_exp_0004) stats(N F Fp widstat, fmt
> (0 3 3 3) label(Observations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. 
> Robust standard errors in parentheses. All models contain state and year fixed effects.") collabels(no
> ne) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_0004.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_0004.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_0
> 004.tex", append refcat(sc_cons_0004 "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(*
>  0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_0004 "\hspace{0.5cm} Policy $\times$ Partisanship (2
> 000--2004)" active_exp "\hspace{0.5cm} Policy" cons_exp_0004 "\hspace{0.5cm} Partisanship (2000--2004)
> " pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hs
> pace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_0004_w1 sc_cons
> _0004 active_exp_w1 active_exp cons_exp_0004_w1 cons_exp_0004) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_0004.tex)

. 
. /** Mean vote share from 2000 to 2008 **/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_0008) active_exp cons_exp_0008 ib(first).yr ib(first).mx_
> id, robust first savefirst savefprefix(est1_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_0008 |   698.3601   192.2097     3.63   0.000     320.5775    1076.143
   active_exp |   -2067.66   673.5114    -3.07   0.002    -3391.426   -743.8928
cons_exp_0008 |  -2278.388   2362.796    -0.96   0.335    -6922.393    2365.617
              |
           yr |
        2004  |   263.4063   572.7498     0.46   0.646    -862.3166    1389.129
        2005  |   17.15623    578.696     0.03   0.976    -1120.254    1154.566
        2006  |   713.9688   519.2792     1.37   0.170    -306.6593    1734.597
        2007  |   2480.031   430.9834     5.75   0.000     1632.946    3327.116
        2008  |   4905.005   507.5744     9.66   0.000     3907.382    5902.627
        2009  |   6165.739   616.5562    10.00   0.000     4953.916    7377.562
        2010  |   7532.518   946.0308     7.96   0.000     5673.122    9391.913
        2011  |   9494.158   1304.338     7.28   0.000      6930.52     12057.8
        2012  |     9560.1   1379.136     6.93   0.000      6849.45    12270.75
        2013  |   7599.677   1295.193     5.87   0.000     5054.013    10145.34
        2014  |   5635.551   1279.775     4.40   0.000     3120.192    8150.911
        2015  |   4660.052   1278.164     3.65   0.000     2147.857    7172.246
        2016  |    4684.02   1273.206     3.68   0.000     2181.571     7186.47
        2017  |   1400.551   1437.338     0.97   0.330    -1424.495    4225.598
              |
        mx_id |
           2  |  -10993.45    727.481   -15.11   0.000    -12423.29   -9563.608
           3  |  -14584.81   3301.421    -4.42   0.000    -21073.66   -8095.964
           4  |   -14458.5   3527.016    -4.10   0.000    -21390.74   -7526.254
           5  |  -10565.49   2518.159    -4.20   0.000    -15514.85   -5616.117
           6  |  -13073.35   3413.336    -3.83   0.000    -19782.16   -6364.536
           7  |   -12165.8   1963.587    -6.20   0.000    -16025.18   -8306.431
           8  |  -7750.706   1954.094    -3.97   0.000    -11591.42   -3909.991
           9  |  -8287.877   1075.324    -7.71   0.000    -10401.39    -6174.36
          10  |  -401.4984   949.8191    -0.42   0.673     -2268.34    1465.343
          11  |  -6505.469   639.5644   -10.17   0.000    -7762.514   -5248.424
          12  |   7386.652   2279.828     3.24   0.001     2905.718    11867.59
          13  |   -8036.58   1963.432    -4.09   0.000    -11895.65   -4177.511
          14  |  -7293.622   1282.134    -5.69   0.000    -9813.618   -4773.625
          15  |  -4023.061   784.7565    -5.13   0.000    -5565.477   -2480.645
          16  |  -1163.545    1863.58    -0.62   0.533    -4826.356    2499.266
          17  |  -2949.816   567.7084    -5.20   0.000     -4065.63   -1834.001
          18  |  -1788.227   1365.121    -1.31   0.191    -4471.331    894.8777
          19  |   -6766.52   538.5417   -12.56   0.000    -7825.007   -5708.032
          20  |  -5920.861   1293.781    -4.58   0.000    -8463.748   -3377.973
          21  |  -9757.875   1787.977    -5.46   0.000    -13272.09   -6243.659
          22  |   1624.537   1007.968     1.61   0.108    -356.5953    3605.669
          23  |  -13761.67   3809.682    -3.61   0.000    -21249.48   -6273.848
          24  |   2385.159   2289.123     1.04   0.298    -2114.045    6884.363
          25  |  -8018.651   1038.241    -7.72   0.000    -10059.28   -5978.018
          26  |  -6936.784   1011.794    -6.86   0.000    -8925.435   -4948.132
          27  |   -13210.1   3422.947    -3.86   0.000     -19937.8   -6482.399
          28  |  -6103.921   474.6975   -12.86   0.000    -7036.924   -5170.917
          29  |  -10331.35   1741.647    -5.93   0.000     -13754.5    -6908.19
          30  |  -7243.041   1690.768    -4.28   0.000     -10566.2   -3919.886
          31  |  -11388.76   1013.904   -11.23   0.000    -13381.56   -9395.961
          32  |          0  (omitted)
              |
        _cons |   14689.64   5668.049     2.59   0.010     3549.261    25830.03
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    13.20
  Prob > F      =   0.0003
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    13.20
  Prob > F      =   0.0003



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      13.20    0.0003 |       14.67   0.0001 |       13.20

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.89    P-val=0.0003

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      21.34
Kleibergen-Paap Wald rk F statistic                                13.20

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.71     P-val=0.0099
Anderson-Rubin Wald test           Chi-sq(1)=      7.46     P-val=0.0063
Stock-Wright LM S statistic        Chi-sq(1)=      8.90     P-val=0.0028

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   144.57
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9487
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9774
Residual SS             =  9297683.881                Root MSE      =    139.2

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |    .033721   .0138004     2.44   0.015     .0066727    .0607693
   active_exp |  -6.126739   8.954927    -0.68   0.494    -23.67807     11.4246
cons_exp_0008 |  -789.2978   117.2488    -6.73   0.000    -1019.101   -559.4943
              |
           yr |
        2004  |   90.90087   33.47621     2.72   0.007      25.2887     156.513
        2005  |    204.096   32.91794     6.20   0.000      139.578     268.614
        2006  |   301.8039   41.22119     7.32   0.000     221.0119    382.5959
        2007  |   257.6249   52.31567     4.92   0.000     155.0881    360.1618
        2008  |   148.2977   75.04966     1.98   0.048     1.203111    295.3924
        2009  |  -4.534623   87.44389    -0.05   0.959    -175.9215    166.8522
        2010  |  -1.265096   84.13169    -0.02   0.988    -166.1602      163.63
        2011  |   3.638563   101.0811     0.04   0.971    -194.4768    201.7539
        2012  |  -.4182732   98.19082    -0.00   0.997    -192.8687    192.0322
        2013  |   65.69113   75.67554     0.87   0.385     -82.6302    214.0125
        2014  |   173.9401    57.9902     3.00   0.003     60.28138    287.5988
        2015  |   242.3815   49.19583     4.93   0.000     145.9594    338.8035
        2016  |   310.5891    51.1162     6.08   0.000     210.4032     410.775
        2017  |   32.76729   59.32513     0.55   0.581    -83.50783    149.0424
              |
        mx_id |
           2  |   265.9197   168.1384     1.58   0.114    -63.62543    595.4649
           3  |  -1095.435   245.1015    -4.47   0.000    -1575.826   -615.0453
           4  |  -1176.199    243.665    -4.83   0.000    -1653.774   -698.6243
           5  |  -374.0239   183.8272    -2.03   0.042    -734.3186   -13.72917
           6  |  -788.0719   227.2857    -3.47   0.001    -1233.544   -342.6001
           7  |    413.273   194.6672     2.12   0.034     31.73242    794.8136
           8  |  -603.4354   134.9775    -4.47   0.000    -867.9864   -338.8843
           9  |   319.7902   129.3089     2.47   0.013     66.34939     573.231
          10  |  -240.9847   41.43785    -5.82   0.000    -322.2014    -159.768
          11  |   1203.787   112.3786    10.71   0.000      983.529    1424.045
          12  |   1858.478   152.3714    12.20   0.000     1559.835     2157.12
          13  |   336.2818   141.7614     2.37   0.018     58.43463     614.129
          14  |   113.2389   116.4815     0.97   0.331    -115.0607    341.5385
          15  |   1707.929   89.18619    19.15   0.000     1533.128    1882.731
          16  |   2407.679    111.604    21.57   0.000     2188.939    2626.419
          17  |   182.4755   49.03432     3.72   0.000     86.37001     278.581
          18  |   341.6119   75.35662     4.53   0.000     193.9156    489.3081
          19  |   69.82735   101.0032     0.69   0.489    -128.1352    267.7899
          20  |   539.9767   107.0243     5.05   0.000     330.2129    749.7405
          21  |    576.464   165.8769     3.48   0.001     251.3513    901.5767
          22  |  -34.04931   52.91692    -0.64   0.520    -137.7646    69.66595
          23  |  -1278.158   245.6683    -5.20   0.000    -1759.659   -796.6571
          24  |   864.6499   121.7768     7.10   0.000     625.9717    1103.328
          25  |    554.423   123.6523     4.48   0.000     312.0689    796.7771
          26  |  -171.9048   107.1804    -1.60   0.109    -381.9744    38.16484
          27  |  -1111.767   230.5695    -4.82   0.000    -1563.675   -659.8592
          28  |   262.0938   90.94599     2.88   0.004     83.84297    440.3447
          29  |  -462.3543   161.8943    -2.86   0.004    -779.6612   -145.0474
          30  |   434.2462    135.023     3.22   0.001     169.6061    698.8864
          31  |  -212.0831   168.3735    -1.26   0.208    -542.0891    117.9229
          32  |          0  (omitted)
              |
        _cons |   1811.493   320.3701     5.65   0.000     1183.579    2439.407
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.892
                                                   Chi-sq(1) P-val =    0.0003
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               21.345
                         (Kleibergen-Paap rk Wald F statistic):         13.201
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_0008 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id
Excluded instruments: sc_cons_0008
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_0008) active_exp cons_exp_0008 pop ann_pr_mx avg_tmp_mx i
> b(first).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
-------------------------------------------------------------------------------
              |               Robust
 dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
 sc_cons_0008 |   705.7963   194.8964     3.62   0.000     322.7257    1088.867
   active_exp |    -2130.9   685.2441    -3.11   0.002    -3477.753   -784.0462
cons_exp_0008 |  -566.2259   2406.821    -0.24   0.814    -5296.854    4164.402
          pop |   1017.149   518.0127     1.96   0.050    -1.009662    2035.308
    ann_pr_mx |   .6802459    .503327     1.35   0.177    -.3090479     1.66954
   avg_tmp_mx |  -449.6463    240.657    -1.87   0.062    -922.6599    23.36725
              |
           yr |
        2004  |   255.4885   609.8689     0.42   0.675    -943.2145    1454.191
        2005  |   300.7396   633.6983     0.47   0.635    -944.8003     1546.28
        2006  |   949.9691    616.285     1.54   0.124    -261.3447    2161.283
        2007  |    2615.73   544.4111     4.80   0.000     1545.685    3685.775
        2008  |   4902.156   591.3269     8.29   0.000     3739.898    6064.415
        2009  |   6427.975   739.1691     8.70   0.000     4975.131    7880.819
        2010  |   7408.115   989.6477     7.49   0.000     5462.953    9353.276
        2011  |   9756.786   1334.838     7.31   0.000      7133.15    12380.42
        2012  |   9725.536   1417.303     6.86   0.000     6939.815    12511.26
        2013  |   7544.356   1312.347     5.75   0.000     4964.927    10123.79
        2014  |   5554.785   1292.131     4.30   0.000      3015.09    8094.479
        2015  |   4697.468   1297.978     3.62   0.000      2146.28    7248.657
        2016  |   4722.477   1295.099     3.65   0.000     2176.948    7268.005
        2017  |  -2934.329   3193.586    -0.92   0.359    -9211.352    3342.694
              |
        mx_id |
           2  |  -12437.47   1162.504   -10.70   0.000    -14722.38   -10152.56
           3  |  -9185.895   3883.088    -2.37   0.018    -16818.14   -1553.649
           4  |  -8348.845   4462.605    -1.87   0.062    -17120.14    422.4458
           5  |  -10287.74   3492.792    -2.95   0.003    -17152.86   -3422.628
           6  |  -13201.77   3514.736    -3.76   0.000    -20110.02   -6293.528
           7  |  -21166.16   4590.645    -4.61   0.000    -30189.12   -12143.21
           8  |  -6495.342   2251.025    -2.89   0.004    -10919.75   -2070.931
           9  |  -4839.609   2139.382    -2.26   0.024    -9044.584   -634.6334
          10  |  -369.4339    965.727    -0.38   0.702    -2267.579    1528.711
          11  |  -21378.55   7235.353    -2.95   0.003    -35599.71   -7157.402
          12  |   2378.389   3336.334     0.71   0.476    -4179.207    8935.984
          13  |  -6173.088   2755.094    -2.24   0.026    -11588.25   -757.9249
          14  |  -8524.658   1427.477    -5.97   0.000    -11330.38    -5718.94
          15  |  -9455.294   3204.264    -2.95   0.003     -15753.3   -3157.284
          16  |   -3715.96   2616.757    -1.42   0.156     -8859.22    1427.301
          17  |  -1763.631   1192.185    -1.48   0.140    -4106.882    579.6192
          18  |   -915.453    1604.14    -0.57   0.569    -4068.405    2237.499
          19  |  -8386.362   1930.117    -4.35   0.000    -12180.02     -4592.7
          20  |  -6209.393   2019.925    -3.07   0.002    -10179.57   -2239.212
          21  |  -12767.48   2818.093    -4.53   0.000    -18306.47   -7228.494
          22  |   48.39872   1144.323     0.04   0.966    -2200.779    2297.576
          23  |   -7856.05   4720.702    -1.66   0.097    -17134.63    1422.533
          24  |   484.6799    2492.55     0.19   0.846    -4414.451    5383.811
          25  |  -7276.177    1833.44    -3.97   0.000    -10879.82   -3672.534
          26  |  -5904.946   1520.837    -3.88   0.000    -8894.164   -2915.728
          27  |  -8808.988   4354.192    -2.02   0.044    -17367.19   -250.7833
          28  |  -6028.349   1535.583    -3.93   0.000    -9046.552   -3010.146
          29  |  -9888.585   1761.658    -5.61   0.000    -13351.14   -6426.031
          30  |  -10437.13    3789.09    -2.75   0.006    -17884.62   -2989.639
          31  |  -7954.637   2445.944    -3.25   0.001    -12762.16   -3147.112
          32  |          0  (omitted)
              |
        _cons |   16901.24   6463.808     2.61   0.009     4196.562    29605.91
-------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    13.11
  Prob > F      =   0.0003
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    13.11
  Prob > F      =   0.0003



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      13.11    0.0003 |       14.67   0.0001 |       13.11

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.79    P-val=0.0003

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      21.95
Kleibergen-Paap Wald rk F statistic                                13.11

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       6.09     P-val=0.0140
Anderson-Rubin Wald test           Chi-sq(1)=      6.82     P-val=0.0090
Stock-Wright LM S statistic        Chi-sq(1)=      9.05     P-val=0.0026

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   146.62
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9513
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9785
Residual SS             =  8829845.368                Root MSE      =    135.6

-------------------------------------------------------------------------------
              |               Robust
          rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------+----------------------------------------------------------------
 dpt_tot_prop |   .0311378   .0130385     2.39   0.017     .0055828    .0566928
   active_exp |    -4.4204   8.216259    -0.54   0.591    -20.52397    11.68317
cons_exp_0008 |  -831.4442   130.1113    -6.39   0.000    -1086.458   -576.4309
          pop |  -85.04864   63.72029    -1.33   0.182    -209.9381    39.84083
    ann_pr_mx |   .0387921   .0342466     1.13   0.257      -.02833    .1059142
   avg_tmp_mx |  -15.79387   15.01057    -1.05   0.293    -45.21405    13.62631
              |
           yr |
        2004  |   99.90182   37.34495     2.68   0.007     26.70706    173.0966
        2005  |   229.8456   37.58939     6.11   0.000     156.1717    303.5194
        2006  |   335.6587   45.68796     7.35   0.000      246.112    425.2055
        2007  |   299.3283   55.36605     5.41   0.000     190.8128    407.8437
        2008  |   197.4625   74.07409     2.67   0.008     52.27995    342.6451
        2009  |   64.27369   89.88727     0.72   0.475    -111.9021    240.4495
        2010  |   51.44712   83.00361     0.62   0.535     -111.237    214.1312
        2011  |   77.14437   104.4628     0.74   0.460     -127.599    281.8878
        2012  |   73.26595   101.7044     0.72   0.471     -126.071    272.6029
        2013  |   128.6702   78.93901     1.63   0.103    -26.04737    283.3879
        2014  |   236.1705   65.29206     3.62   0.000     108.2004    364.1406
        2015  |   312.4635    60.2988     5.18   0.000       194.28     430.647
        2016  |   385.7407   61.52028     6.27   0.000     265.1631    506.3182
        2017  |  -39.89266   180.4314    -0.22   0.825    -393.5317    313.7464
              |
        mx_id |
           2  |   403.9665   206.2168     1.96   0.050    -.2109976     808.144
           3  |  -1151.688   247.6119    -4.65   0.000    -1636.998   -666.3776
           4  |   -1205.25   263.5879    -4.57   0.000    -1721.872   -688.6268
           5  |  -95.33135   266.1597    -0.36   0.720    -616.9948    426.3321
           6  |  -705.0474   229.1256    -3.08   0.002    -1154.125   -255.9694
           7  |   894.6118   515.1696     1.74   0.082     -115.102    1904.326
           8  |  -482.1387   142.1356    -3.39   0.001    -760.7194   -203.5581
           9  |   367.8895   140.0383     2.63   0.009      93.4194    642.3595
          10  |  -229.4457   41.32415    -5.55   0.000    -310.4395   -148.4519
          11  |   2300.189   907.5803     2.53   0.011      521.364    4079.013
          12  |   2259.851   314.2488     7.19   0.000     1643.935    2875.767
          13  |   539.9665   185.8509     2.91   0.004     175.7055    904.2275
          14  |   158.5067   134.5172     1.18   0.239    -105.1422    422.1556
          15  |   2249.264   404.6802     5.56   0.000     1456.105    3042.422
          16  |   2740.509   260.5589    10.52   0.000     2229.823    3251.195
          17  |   264.7714   77.79593     3.40   0.001     112.2942    417.2487
          18  |   375.1392   90.96154     4.12   0.000     196.8579    553.4206
          19  |   393.7012   239.7534     1.64   0.101    -76.20687    863.6093
          20  |   749.0413   179.6011     4.17   0.000     397.0296    1101.053
          21  |   905.6865   310.6248     2.92   0.004      296.873      1514.5
          22  |  -16.56458   69.05879    -0.24   0.810    -151.9173    118.7882
          23  |  -1261.995   266.4243    -4.74   0.000    -1784.177   -739.8134
          24  |   1042.093   173.9708     5.99   0.000     701.1169     1383.07
          25  |   761.1021   174.0627     4.37   0.000     419.9455    1102.259
          26  |  -23.55671   128.9655    -0.18   0.855    -276.3244     229.211
          27  |  -1040.558    247.506    -4.20   0.000    -1525.661   -555.4553
          28  |   479.7741   164.1402     2.92   0.003     158.0653    801.4829
          29  |   -564.913   157.9388    -3.58   0.000    -874.4674   -255.3586
          30  |   971.8162   405.3728     2.40   0.017     177.3002    1766.332
          31  |  -82.58699   178.8998    -0.46   0.644    -433.2242    268.0502
          32  |          0  (omitted)
              |
        _cons |   2260.317   430.9879     5.24   0.000     1415.596    3105.037
-------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.786
                                                   Chi-sq(1) P-val =    0.0003
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               21.954
                         (Kleibergen-Paap rk Wald F statistic):         13.114
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_0008 pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_0008
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 cons_exp_0008, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. gen sc_cons_0008_w1 = active_exp_w1*cons_exp_0008_w1

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_0008_w1) active_exp_w1 cons_exp_0008_w1 ib(first).y
> r ib(first).mx_id, robust first savefirst savefprefix(est3_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_0008_w1 |   656.4556   182.8768     3.59   0.000     297.0165    1015.895
   active_exp_w1 |   -1933.03   644.8177    -3.00   0.003      -3200.4     -665.66
cons_exp_0008_w1 |  -2221.313   2388.525    -0.93   0.353    -6915.887    2473.262
                 |
              yr |
           2004  |   263.4063    562.161     0.47   0.640    -841.5046    1368.317
           2005  |   18.70292   568.3402     0.03   0.974    -1098.353    1135.759
           2006  |   713.9688   508.4418     1.40   0.161    -285.3586    1713.296
           2007  |   2480.031   422.1756     5.87   0.000     1650.258    3309.805
           2008  |   4903.235   503.1426     9.75   0.000     3914.323    5892.147
           2009  |   6146.964   614.5999    10.00   0.000     4938.986    7354.942
           2010  |   7426.555   927.2114     8.01   0.000     5604.149    9248.962
           2011  |    9187.34   1218.193     7.54   0.000     6793.016    11581.66
           2012  |   9283.108   1312.834     7.07   0.000     6702.771    11863.44
           2013  |    7426.62   1265.723     5.87   0.000     4938.878    9914.362
           2014  |   5462.495   1246.042     4.38   0.000     3013.437    7911.553
           2015  |   4486.995   1239.876     3.62   0.000     2050.055    6923.935
           2016  |   4510.963   1234.275     3.65   0.000     2085.033    6936.894
           2017  |   1231.863   1396.667     0.88   0.378    -1513.245    3976.971
                 |
           mx_id |
              2  |  -11013.39    726.933   -15.15   0.000    -12442.15   -9584.624
              3  |  -14523.02   3333.687    -4.36   0.000    -21075.28   -7970.755
              4  |  -14372.29   3559.537    -4.04   0.000    -21368.45   -7376.123
              5  |  -10535.05   2542.588    -4.14   0.000    -15532.43   -5537.666
              6  |  -12997.78   3445.514    -3.77   0.000    -19769.83   -6225.721
              7  |   -12157.5   1980.479    -6.14   0.000    -16050.07   -8264.929
              8  |  -7723.991   1972.421    -3.92   0.000    -11600.73   -3847.256
              9  |  -8286.654   1086.817    -7.62   0.000    -10422.76   -6150.548
             10  |  -400.7575    957.237    -0.42   0.676    -2282.179    1480.664
             11  |  -6508.355    643.313   -10.12   0.000    -7772.767   -5243.942
             12  |   6836.926   2175.773     3.14   0.002     2560.507    11113.34
             13  |  -8020.836   1982.508    -4.05   0.000     -11917.4   -4124.274
             14  |  -7286.528   1293.188    -5.63   0.000     -9828.25   -4744.806
             15  |   -4026.25   798.0856    -5.04   0.000    -5594.864   -2457.637
             16  |  -1136.281   1886.568    -0.60   0.547    -4844.275    2571.713
             17  |  -2954.707   577.0734    -5.12   0.000    -4088.928   -1820.486
             18  |  -1778.765   1381.444    -1.29   0.199    -4493.952    936.4215
             19  |  -6760.369   542.4654   -12.46   0.000    -7826.568   -5694.169
             20  |  -5923.867   1305.932    -4.54   0.000    -8490.637   -3357.096
             21  |  -9758.317   1803.205    -5.41   0.000    -13302.46    -6214.17
             22  |    1624.25   1019.185     1.59   0.112    -378.9279    3627.428
             23  |  -13669.66   3846.087    -3.55   0.000    -21229.03   -6110.286
             24  |   2427.746   2319.808     1.05   0.296    -2131.768    6987.261
             25  |   -8019.68   1043.257    -7.69   0.000    -10070.17   -5969.188
             26  |   -6943.57   1012.978    -6.85   0.000    -8934.547   -4952.592
             27  |  -13137.94   3455.523    -3.80   0.000    -19929.67   -6346.215
             28  |   -6098.11   481.1821   -12.67   0.000     -7043.86   -5152.361
             29  |   -10324.4   1754.802    -5.88   0.000    -13773.41    -6875.39
             30  |  -7223.335   1705.999    -4.23   0.000    -10576.43   -3870.243
             31  |  -11406.84    1017.07   -11.22   0.000    -13405.86   -9407.816
             32  |          0  (omitted)
                 |
           _cons |   14573.88   5726.687     2.54   0.011     3318.247    25829.51
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   432) =    12.89
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   432) =    12.89
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   432)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   432)
dpt_tot_prop |      12.89    0.0004 |       14.32   0.0002 |       12.89

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.53    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      20.06
Kleibergen-Paap Wald rk F statistic                                12.89

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,432)=       6.27     P-val=0.0127
Anderson-Rubin Wald test           Chi-sq(1)=      6.96     P-val=0.0083
Stock-Wright LM S statistic        Chi-sq(1)=      8.11     P-val=0.0044

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         48
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         48
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 47,   432) =   149.41
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9495
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9778
Residual SS             =  9109045.032                Root MSE      =    137.8

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |   .0341936   .0142748     2.40   0.017     .0062154    .0621718
   active_exp_w1 |  -7.003166   8.953938    -0.78   0.434    -24.55256    10.54623
cons_exp_0008_w1 |  -787.6272   118.8837    -6.63   0.000    -1020.635   -554.6194
                 |
              yr |
           2004  |   90.81228   33.66009     2.70   0.007     24.83971    156.7849
           2005  |   203.8631    33.0775     6.16   0.000     139.0324    268.6938
           2006  |   301.2945   41.28522     7.30   0.000      220.377    382.2121
           2007  |    256.281   52.90986     4.84   0.000     152.5795    359.9824
           2008  |   145.8558   77.04412     1.89   0.058    -5.147855    296.8595
           2009  |  -7.097953     90.226    -0.08   0.937    -183.9377    169.7418
           2010  |  -1.975473   85.94073    -0.02   0.982    -170.4162    166.4653
           2011  |    8.55721   101.4204     0.08   0.933    -190.2232    207.3376
           2012  |   3.293089   98.87857     0.03   0.973    -190.5053    197.0915
           2013  |   66.72166   76.30907     0.87   0.382    -82.84137    216.2847
           2014  |   175.8989    57.7674     3.04   0.002     62.67683    289.1209
           2015  |   244.4516   48.64538     5.03   0.000     149.1084    339.7948
           2016  |    305.978   51.27605     5.97   0.000     205.4788    406.4772
           2017  |   36.57811   59.71352     0.61   0.540    -80.45825    153.6145
                 |
           mx_id |
              2  |   271.6575   173.6582     1.56   0.118    -68.70629    612.0214
              3  |  -1088.128   251.6369    -4.32   0.000    -1581.327   -594.9284
              4  |  -1169.824   249.8958    -4.68   0.000     -1659.61   -680.0368
              5  |  -369.0023   188.7096    -1.96   0.051    -738.8662    .8616629
              6  |  -782.2274   233.0169    -3.36   0.001    -1238.932   -325.5227
              7  |   419.2243   200.3753     2.09   0.036     26.49593    811.9526
              8  |  -599.9184   138.5415    -4.33   0.000    -871.4547    -328.382
              9  |   323.9443     133.08     2.43   0.015      63.1123    584.7764
             10  |  -240.7884    42.1943    -5.71   0.000    -323.4877   -158.0891
             11  |   1206.938    114.966    10.50   0.000     981.6087    1432.267
             12  |   1874.264    149.649    12.52   0.000     1580.957     2167.57
             13  |   340.1564   145.5518     2.34   0.019     54.88011    625.4327
             14  |   116.6973   119.9137     0.97   0.330    -118.3293    351.7238
             15  |   1710.015   90.92101    18.81   0.000     1531.813    1888.217
             16  |   2392.372   109.2312    21.90   0.000     2178.282    2606.461
             17  |   183.9805   50.45236     3.65   0.000      85.0957    282.8653
             18  |   342.5483   76.35625     4.49   0.000     192.8928    492.2038
             19  |   72.82448   104.0732     0.70   0.484    -131.1552    276.8041
             20  |   543.0113   109.9087     4.94   0.000     327.5942    758.4284
             21  |   581.4019   170.6261     3.41   0.001     246.9808    915.8229
             22  |  -34.83767   53.76023    -0.65   0.517    -140.2058    70.53045
             23  |  -1272.047   251.5996    -5.06   0.000    -1765.173   -778.9212
             24  |   862.8274   123.4364     6.99   0.000     620.8964    1104.758
             25  |   558.4223   127.3697     4.38   0.000     308.7822    808.0624
             26  |  -168.4155   110.5728    -1.52   0.128    -385.1342    48.30328
             27  |  -1105.796   236.3796    -4.68   0.000    -1569.092   -642.5006
             28  |   264.7531   93.64054     2.83   0.005     81.22098    448.2852
             29  |  -457.3178   166.8529    -2.74   0.006    -784.3434   -130.2922
             30  |    437.557   138.0194     3.17   0.002      167.044    708.0701
             31  |  -206.2071   174.1383    -1.18   0.236    -547.5119    135.0978
             32  |          0  (omitted)
                 |
           _cons |   1803.383   327.2546     5.51   0.000     1161.976     2444.79
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.534
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               20.061
                         (Kleibergen-Paap rk Wald F statistic):         12.885
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_0008_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id
Excluded instruments: sc_cons_0008_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_0008_w1) active_exp_w1 cons_exp_0008_w1 pop ann_pr_
> mx avg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)
Warning - collinearities detected
Vars dropped:       32.mx_id

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
----------------------------------------------------------------------------------
                 |               Robust
 dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 sc_cons_0008_w1 |   662.7168   184.8874     3.58   0.000     299.3189    1026.115
   active_exp_w1 |  -1991.441   653.7982    -3.05   0.002    -3276.487   -706.3944
cons_exp_0008_w1 |  -552.2049   2429.819    -0.23   0.820    -5328.037    4223.627
             pop |   950.9573   492.7078     1.93   0.054    -17.46437    1919.379
       ann_pr_mx |   .7055566   .4969474     1.42   0.156     -.271198    1.682311
      avg_tmp_mx |  -454.5959   237.7006    -1.91   0.056    -921.7986    12.60677
                 |
              yr |
           2004  |    263.264   598.8866     0.44   0.660    -913.8532    1440.381
           2005  |   319.3951   624.7979     0.51   0.609    -908.6509    1547.441
           2006  |   972.2917   605.9497     1.60   0.109    -218.7079    2163.291
           2007  |    2641.29   536.7896     4.92   0.000     1586.225    3696.354
           2008  |   4927.993   587.2914     8.39   0.000     3773.667     6082.32
           2009  |   6445.591   737.9677     8.73   0.000     4995.108    7896.073
           2010  |   7329.573   976.4909     7.51   0.000     5410.272    9248.875
           2011  |   9484.272   1265.359     7.50   0.000     6997.197    11971.35
           2012  |   9484.097   1363.352     6.96   0.000     6804.417    12163.78
           2013  |   7404.601   1291.822     5.73   0.000     4865.512    9943.689
           2014  |   5418.125   1268.507     4.27   0.000     2924.862    7911.387
           2015  |   4566.683   1271.343     3.59   0.000     2067.846    7065.519
           2016  |   4594.782   1269.443     3.62   0.000      2099.68    7089.883
           2017  |  -3091.575   3142.911    -0.98   0.326    -9268.995    3085.844
                 |
           mx_id |
              2  |  -12331.34   1132.514   -10.89   0.000     -14557.3   -10105.37
              3  |  -9195.603   3896.226    -2.36   0.019    -16853.67   -1537.536
              4  |  -8333.525   4468.984    -1.86   0.063    -17117.35    450.3042
              5  |  -10075.29   3453.709    -2.92   0.004    -16863.59   -3286.997
              6  |  -13049.35   3533.322    -3.69   0.000    -19994.12   -6104.571
              7  |  -20730.08   4456.419    -4.65   0.000    -29489.21   -11970.95
              8  |  -6391.542   2252.392    -2.84   0.005    -10818.64   -1964.445
              9  |  -4836.383   2129.028    -2.27   0.024    -9021.007   -651.7586
             10  |  -361.6451   971.2412    -0.37   0.710    -2270.629    1547.338
             11  |  -20501.74   6894.923    -2.97   0.003    -34053.77   -6949.706
             12  |   2130.584   3224.383     0.66   0.509    -4206.969    8468.138
             13  |  -6038.433   2736.435    -2.21   0.028    -11416.92   -659.9456
             14  |  -8463.795   1426.542    -5.93   0.000    -11267.68   -5659.914
             15  |  -9045.004   3043.075    -2.97   0.003     -15026.2   -3063.812
             16  |  -3446.297   2554.969    -1.35   0.178    -8468.111    1575.517
             17  |  -1727.704   1184.315    -1.46   0.145    -4055.485    600.0779
             18  |  -896.5873   1612.307    -0.56   0.578    -4065.591    2272.416
             19  |  -8143.201    1842.65    -4.42   0.000    -11764.95   -4521.457
             20  |  -6071.177    1984.79    -3.06   0.002      -9972.3   -2170.054
             21  |  -12511.27   2748.056    -4.55   0.000     -17912.6   -7109.938
             22  |   72.42833   1146.265     0.06   0.950    -2180.567    2325.423
             23  |  -7805.634   4729.953    -1.65   0.100     -17102.4    1491.133
             24  |   657.8854   2491.745     0.26   0.792    -4239.662    5555.433
             25  |  -7141.474   1798.308    -3.97   0.000    -10676.06   -3606.883
             26  |  -5815.863   1501.509    -3.87   0.000    -8767.092   -2864.633
             27  |  -8731.581   4355.639    -2.00   0.046    -17292.63   -170.5318
             28  |  -5875.702   1487.045    -3.95   0.000    -8798.503   -2952.902
             29  |  -9938.793   1770.432    -5.61   0.000    -13418.59   -6458.993
             30  |  -10034.18   3650.008    -2.75   0.006     -17208.3   -2860.054
             31  |  -7915.196   2418.856    -3.27   0.001    -12669.48   -3160.912
             32  |          0  (omitted)
                 |
           _cons |   17015.25   6480.262     2.63   0.009     4278.241    29752.27
----------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   429) =    12.85
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   429) =    12.85
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   429)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   429)
dpt_tot_prop |      12.85    0.0004 |       14.38   0.0001 |       12.85

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.47    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      20.61
Kleibergen-Paap Wald rk F statistic                                12.85

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,429)=       5.66     P-val=0.0178
Anderson-Rubin Wald test           Chi-sq(1)=      6.34     P-val=0.0118
Stock-Wright LM S statistic        Chi-sq(1)=      8.22     P-val=0.0041

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         51
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         51
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 50,   429) =   151.66
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9520
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9789
Residual SS             =  8653867.836                Root MSE      =    134.3

----------------------------------------------------------------------------------
                 |               Robust
          rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
 dpt_tot_prop_w1 |    .031522    .013504     2.33   0.020     .0050547    .0579892
   active_exp_w1 |  -5.344321   8.169731    -0.65   0.513     -21.3567    10.66806
cons_exp_0008_w1 |  -828.9078    130.969    -6.33   0.000    -1085.602   -572.2133
             pop |  -83.13053   63.71079    -1.30   0.192    -208.0014    41.74032
       ann_pr_mx |   .0393739   .0340512     1.16   0.248    -.0273652     .106113
      avg_tmp_mx |  -15.49684   15.20021    -1.02   0.308     -45.2887    14.29502
                 |
              yr |
           2004  |   100.0413   37.48083     2.67   0.008     26.58025    173.5024
           2005  |   229.7296   37.73863     6.09   0.000     155.7632    303.6959
           2006  |   335.2864   45.79035     7.32   0.000      245.539    425.0338
           2007  |    298.194   55.86756     5.34   0.000     188.6956    407.6924
           2008  |   195.3503     75.859     2.58   0.010     46.66935    344.0312
           2009  |   61.99655   92.50051     0.67   0.503    -119.3011    243.2942
           2010  |   51.15885    84.4492     0.61   0.545    -114.3585    216.6762
           2011  |   82.02561   104.7929     0.78   0.434    -123.3648     287.416
           2012  |   77.03692   102.2743     0.75   0.451     -123.417    277.4908
           2013  |   129.7734   79.37932     1.63   0.102    -25.80724     285.354
           2014  |   237.9383   64.97408     3.66   0.000     110.5914    365.2851
           2015  |   314.1409   59.71907     5.26   0.000     197.0937    431.1882
           2016  |   380.6144   61.79371     6.16   0.000     259.5009    501.7278
           2017  |  -33.46585   183.2555    -0.18   0.855    -392.6401    325.7084
                 |
           mx_id |
              2  |   405.4361   210.5354     1.93   0.054    -7.205717    818.0778
              3  |    -1144.2   250.8224    -4.56   0.000    -1635.803    -652.597
              4  |  -1200.505   266.0465    -4.51   0.000    -1721.947   -679.0639
              5  |  -99.47003   267.9356    -0.37   0.710    -624.6141     425.674
              6  |  -702.5845   233.5656    -3.01   0.003    -1160.365   -244.8044
              7  |   886.9826   518.4355     1.71   0.087    -129.1324    1903.098
              8  |  -481.9915   143.9968    -3.35   0.001    -764.2201   -199.7629
              9  |   369.6728   141.4364     2.61   0.009     92.46258     646.883
             10  |  -229.6544   41.89865    -5.48   0.000    -311.7742   -147.5345
             11  |   2276.752    908.088     2.51   0.012     496.9322    4056.572
             12  |   2266.057   313.6885     7.22   0.000     1651.239    2880.875
             13  |   537.9652   187.1631     2.87   0.004     171.1323    904.7982
             14  |   159.6115   137.5558     1.16   0.246    -109.9928    429.2158
             15  |   2238.241   404.7718     5.53   0.000     1444.903    3031.579
             16  |   2717.384   258.6546    10.51   0.000      2210.43    3224.337
             17  |   263.6695   78.15816     3.37   0.001     110.4823    416.8566
             18  |   374.3893   91.52069     4.09   0.000     195.0121    553.7666
             19  |   388.5907   240.5827     1.62   0.106    -82.94262    860.1241
             20  |   745.7509   180.5503     4.13   0.000     391.8789    1099.623
             21  |   901.0563   312.7231     2.88   0.004     288.1303    1513.982
             22  |  -18.02007   69.33394    -0.26   0.795    -153.9121     117.872
             23  |   -1258.53   268.7432    -4.68   0.000    -1785.257   -731.8026
             24  |   1036.585   174.7497     5.93   0.000     694.0824    1379.088
             25  |   759.3485   175.4682     4.33   0.000     415.4371     1103.26
             26  |  -23.97312   130.4571    -0.18   0.854    -279.6644    231.7182
             27  |  -1039.312   249.8559    -4.16   0.000     -1529.02   -549.6032
             28  |   476.6036   164.8932     2.89   0.004     153.4189    799.7883
             29  |  -559.6652   162.4622    -3.44   0.001    -878.0853   -241.2452
             30  |   960.6946   405.9268     2.37   0.018     165.0927    1756.296
             31  |  -81.64179   181.2576    -0.45   0.652    -436.9001    273.6165
             32  |          0  (omitted)
                 |
           _cons |   2243.274    438.611     5.11   0.000     1383.612    3102.936
----------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.473
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               20.614
                         (Kleibergen-Paap rk Wald F statistic):         12.848
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_0008_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id
Excluded instruments: sc_cons_0008_w1
Dropped collinear:    32.mx_id
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Set notes in \scriptsize. Next, move final eight lines of firs
> t table to end of second table. Delete \midrule between the tables. Penultimately, consolidate notes b
> y moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which sho
> uld sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleibergen-Paap F 
> statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_0008.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}
> ", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0
> .5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_0008 "\hspace{0.5cm} Partisanship (200
> 0--2008)" pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp
> _mx "\hspace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\
> textit{2}" "\textit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", p
> attern(1 0 1 0) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Eff
> ect of Deportations on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_p
> rop_w1 dpt_tot_prop active_exp_w1 active_exp cons_exp_0008_w1 cons_exp_0008) stats(N F Fp widstat, fmt
> (0 3 3 3) label(Observations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. 
> Robust standard errors in parentheses. All models contain state and year fixed effects.") collabels(no
> ne) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_0008.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_0008.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_0
> 008.tex", append refcat(sc_cons_0008 "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(*
>  0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_0008 "\hspace{0.5cm} Policy $\times$ Partisanship (2
> 000--2008)" active_exp "\hspace{0.5cm} Policy" cons_exp_0008 "\hspace{0.5cm} Partisanship (2000--2008)
> " pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hs
> pace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_0008_w1 sc_cons
> _0008 active_exp_w1 active_exp cons_exp_0008_w1 cons_exp_0008) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_0008.tex)

. 
. /** Single-lag vote share **/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_l1) active_exp cons_exp_l1 ib(first).yr ib(first).mx_id, 
> robust first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
  sc_cons_l1 |   687.6383   190.4593     3.61   0.000     313.2937    1061.983
  active_exp |  -1632.608   649.9517    -2.51   0.012    -2910.078   -355.1391
 cons_exp_l1 |   9879.797   2297.821     4.30   0.000     5363.468    14396.12
             |
          yr |
       2004  |  -2315.273   702.1378    -3.30   0.001    -3695.314   -935.2331
       2005  |  -2561.523   705.9646    -3.63   0.000    -3949.085   -1173.962
       2006  |  -1864.711   659.5169    -2.83   0.005     -3160.98   -568.4413
       2007  |  -98.64829   597.2498    -0.17   0.869    -1272.533    1075.236
       2008  |   1182.247   857.3769     1.38   0.169    -502.9126    2867.407
       2009  |   2227.516   920.0143     2.42   0.016     419.2429    4035.788
       2010  |   2437.563     1211.5     2.01   0.045     56.38098    4818.745
       2011  |   3877.671   1399.124     2.77   0.006     1127.717    6627.626
       2012  |   7100.242   1471.519     4.83   0.000     4207.996    9992.487
       2013  |   5084.519   1363.823     3.73   0.000     2403.948     7765.09
       2014  |   3120.394   1335.147     2.34   0.020     496.1847    5744.603
       2015  |   2144.894   1329.537     1.61   0.107    -468.2886    4758.076
       2016  |   1596.207   1354.496     1.18   0.239    -1066.032    4258.446
       2017  |  -1687.261   1525.415    -1.11   0.269    -4685.439    1310.916
             |
       mx_id |
          2  |  -8083.804   1043.997    -7.74   0.000    -10135.76   -6031.845
          3  |   4271.667   3608.512     1.18   0.237    -2820.804    11364.14
          4  |   5664.549     3895.2     1.45   0.147    -1991.402     13320.5
          5  |   4415.797   2906.245     1.52   0.129    -1296.379    10127.97
          6  |   6515.121   3778.772     1.72   0.085    -911.9923    13942.23
          7  |  -447.0628   2338.463    -0.19   0.848    -5043.273    4149.147
          8  |    4250.65   2369.845     1.79   0.074     -407.242    8908.541
          9  |  -10912.84   843.5057   -12.94   0.000    -12570.74   -9254.943
         10  |   4844.454   1301.813     3.72   0.000     2285.762    7403.147
         11  |  -2015.739   1031.661    -1.95   0.051    -4043.451    11.97354
         12  |   1218.708   1901.464     0.64   0.522    -2518.588    4956.004
         13  |   4015.991   2361.678     1.70   0.090     -625.847    8657.829
         14  |   1094.872   1695.512     0.65   0.519    -2237.628    4427.372
         15  |  -4932.358   666.8408    -7.40   0.000    -6243.022   -3621.694
         16  |  -7890.088     1611.7    -4.90   0.000    -11057.86   -4722.319
         17  |  -1102.099   763.2296    -1.44   0.149    -2602.214    398.0165
         18  |  -5873.927   1081.615    -5.43   0.000    -7999.823   -3748.031
         19  |  -3350.445    899.052    -3.73   0.000    -5117.517   -1583.374
         20  |   2486.102   1694.674     1.47   0.143    -844.7508    5816.955
         21  |   1228.994   2162.869     0.57   0.570    -3022.088    5480.077
         22  |   2445.586   1023.383     2.39   0.017     434.1431    4457.028
         23  |    7901.74   4215.481     1.87   0.062    -383.7182     16187.2
         24  |  -6574.552   1827.434    -3.60   0.000    -10166.34   -2982.762
         25  |  -10024.79   918.7967   -10.91   0.000    -11830.67   -8218.906
         26  |  -1401.586   1474.998    -0.95   0.343     -4300.67    1497.499
         27  |    6399.96   3838.528     1.67   0.096    -1144.603    13944.52
         28  |  -4377.622   699.1252    -6.26   0.000    -5751.741   -3003.503
         29  |   304.0145    2122.58     0.14   0.886    -3867.881     4475.91
         30  |   3330.032     2102.2     1.58   0.114    -801.8075    7461.871
         31  |   -5467.87   1385.161    -3.95   0.000    -8190.382   -2745.359
         32  |   4463.898   1200.847     3.72   0.000     2103.653    6824.142
             |
       _cons |  -13966.85   5455.265    -2.56   0.011    -24689.08   -3244.613
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    13.04
  Prob > F      =   0.0003
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    13.04
  Prob > F      =   0.0003



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      13.04    0.0003 |       14.52   0.0001 |       13.04

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.89    P-val=0.0003

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      20.66
Kleibergen-Paap Wald rk F statistic                                13.04

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       4.72     P-val=0.0304
Anderson-Rubin Wald test           Chi-sq(1)=      5.25     P-val=0.0219
Stock-Wright LM S statistic        Chi-sq(1)=      6.12     P-val=0.0134

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   155.31
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9519
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9788
Residual SS             =  8719639.372                Root MSE      =    134.8

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0293236   .0138708     2.11   0.035     .0021373      .05651
  active_exp |  -12.09525   12.76755    -0.95   0.343    -37.11918    12.92868
 cons_exp_l1 |  -295.2839    218.231    -1.35   0.176    -723.0087    132.4409
             |
          yr |
       2004  |   169.1298   63.78064     2.65   0.008     44.12209    294.1376
       2005  |   281.2421   65.22607     4.31   0.000     153.4014    409.0829
       2006  |   382.0142   62.25668     6.14   0.000     259.9933     504.035
       2007  |   345.6013   52.63376     6.57   0.000      242.441    448.7615
       2008  |   280.6534   56.79519     4.94   0.000     169.3368    391.9699
       2009  |   135.0125   54.82234     2.46   0.014     27.56272    242.4623
       2010  |   153.3062   62.31347     2.46   0.014       31.174    275.4383
       2011  |   170.6106   66.75479     2.56   0.011     39.77364    301.4476
       2012  |   92.87479   66.29055     1.40   0.161     -37.0523    222.8019
       2013  |   151.0349   56.10108     2.69   0.007     41.07882     260.991
       2014  |   250.6469   56.01021     4.48   0.000     140.8689    360.4249
       2015  |   314.7986   60.92947     5.17   0.000     195.3791    434.2182
       2016  |   395.9606   71.04161     5.57   0.000     256.7216    535.1996
       2017  |   103.7001   101.8469     1.02   0.309     -95.9162    303.3164
             |
       mx_id |
          2  |   337.2077   126.5922     2.66   0.008     89.09156    585.3239
          3  |  -395.3578   227.8409    -1.74   0.083    -841.9178    51.20215
          4  |  -426.3549    256.855    -1.66   0.097    -929.7815    77.07162
          5  |    185.872   189.2891     0.98   0.326    -185.1278    556.8719
          6  |  -52.55632   255.3466    -0.21   0.837    -553.0264    447.9138
          7  |   835.7955   133.0982     6.28   0.000     574.9278    1096.663
          8  |   -155.155   159.0433    -0.98   0.329    -466.8742    156.5641
          9  |   176.1393   166.9243     1.06   0.291    -151.0262    503.3049
         10  |  -30.16712   107.1505    -0.28   0.778    -240.1782    179.8439
         11  |   1357.927   85.67494    15.85   0.000     1190.007    1525.847
         12  |   1645.113   86.08963    19.11   0.000     1476.381    1813.846
         13  |   788.5644   157.0666     5.02   0.000     480.7195    1096.409
         14  |   420.2952   101.0413     4.16   0.000     222.2578    618.3326
         15  |    1655.41   96.62403    17.13   0.000      1466.03    1844.789
         16  |   2132.581   168.0287    12.69   0.000     1803.251    2461.911
         17  |    245.571   39.16775     6.27   0.000     168.8036    322.3384
         18  |   175.8522   107.1184     1.64   0.101    -34.09604    385.8005
         19  |   176.8583   68.18944     2.59   0.009     43.20949    310.5072
         20  |   854.9437   111.1321     7.69   0.000     637.1289    1072.759
         21  |   978.0222   129.4283     7.56   0.000     724.3473    1231.697
         22  |   9.175737   60.00754     0.15   0.878    -108.4369    126.7884
         23  |   -460.043   291.2324    -1.58   0.114    -1030.848     110.762
         24  |    514.529   142.9317     3.60   0.000      234.388    794.6701
         25  |   445.4209   150.5864     2.96   0.003     150.2769    740.5648
         26  |     30.623   70.38999     0.44   0.664    -107.3388    168.5848
         27  |  -374.0788   254.8562    -1.47   0.142    -873.5877    125.4302
         28  |   302.3904   70.11397     4.31   0.000     164.9696    439.8113
         29  |  -78.29652   117.0741    -0.67   0.504    -307.7575    151.1644
         30  |   828.8258   152.1008     5.45   0.000     530.7138    1126.938
         31  |  -23.87806    95.0196    -0.25   0.802    -210.1131    162.3569
         32  |   181.9399   97.50465     1.87   0.062    -9.165731    373.0455
             |
       _cons |   515.7024   407.2458     1.27   0.205    -282.4846     1313.89
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.887
                                                   Chi-sq(1) P-val =    0.0003
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               20.659
                         (Kleibergen-Paap rk Wald F statistic):         13.035
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_l1 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: sc_cons_l1
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_l1) active_exp cons_exp_l1 pop ann_pr_mx avg_tmp_mx ib(fi
> rst).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
  sc_cons_l1 |   687.4096   193.5415     3.55   0.000     306.9995     1067.82
  active_exp |   -1655.43   665.4879    -2.49   0.013    -2963.461   -347.3986
 cons_exp_l1 |    9816.35   2328.073     4.22   0.000     5240.471    14392.23
         pop |    803.016   498.9602     1.61   0.108    -177.7013    1783.733
   ann_pr_mx |   .1603081   .5022988     0.32   0.750    -.8269714    1.147588
  avg_tmp_mx |  -455.1524   245.1759    -1.86   0.064    -937.0512    26.74628
             |
          yr |
       2004  |  -2448.728   763.6452    -3.21   0.001     -3949.69   -947.7669
       2005  |  -2490.392   790.4887    -3.15   0.002    -4044.115    -936.669
       2006  |  -1868.882    781.078    -2.39   0.017    -3404.108   -333.6561
       2007  |  -190.0997    726.435    -0.26   0.794    -1617.924    1237.724
       2008  |   990.3163    960.343     1.03   0.303    -897.2591    2877.892
       2009  |   2228.806   1063.586     2.10   0.037     138.3042    4319.308
       2010  |   2098.599   1312.824     1.60   0.111    -481.7853    4678.983
       2011  |   3852.768    1498.14     2.57   0.010     908.1397    6797.395
       2012  |   6959.431     1542.1     4.51   0.000       3928.4    9990.462
       2013  |   4803.742   1416.821     3.39   0.001     2018.949    7588.535
       2014  |   2821.533   1385.126     2.04   0.042     99.03777    5544.027
       2015  |   1937.828   1387.078     1.40   0.163    -788.5044     4664.16
       2016  |   1409.463    1418.35     0.99   0.321    -1378.336    4197.262
       2017  |  -6614.667   3336.742    -1.98   0.048    -13173.11    -56.2264
             |
       mx_id |
          2  |  -9718.077   1412.886    -6.88   0.000    -12495.14   -6941.019
          3  |   6692.802   3800.421     1.76   0.079    -777.0106    14162.61
          4  |   9218.615   4460.874     2.07   0.039     450.6696    17986.56
          5  |   4005.906   3946.716     1.01   0.311    -3751.451    11763.26
          6  |    3999.27   4120.733     0.97   0.332    -4100.121    12098.66
          7  |  -9268.231   5219.841    -1.78   0.077    -19527.94    991.4818
          8  |   4062.376   2626.714     1.55   0.123    -1100.489     9225.24
          9  |  -6972.741   2147.875    -3.25   0.001    -11194.44   -2751.045
         10  |   4246.949   1341.238     3.17   0.002     1610.717    6883.181
         11  |  -14288.36   7244.458    -1.97   0.049     -28527.5   -49.21413
         12  |  -1952.028    2762.43    -0.71   0.480    -7381.646     3477.59
         13  |   4843.094    3030.08     1.60   0.111    -1112.595    10798.78
         14  |    -959.06   2009.828    -0.48   0.633    -4909.421    2991.301
         15  |  -8751.763   3042.632    -2.88   0.004    -14732.12   -2771.402
         16  |  -8639.092   2272.686    -3.80   0.000    -13106.11   -4172.077
         17  |   153.3771   1277.802     0.12   0.905    -2358.172    2664.926
         18  |  -4111.615    1438.95    -2.86   0.004    -6939.903   -1283.326
         19  |  -4670.522   2098.221    -2.23   0.027    -8794.621   -546.4225
         20  |   1913.409   2398.733     0.80   0.426    -2801.355    6628.172
         21  |  -2066.884     3347.2    -0.62   0.537     -8645.88    4512.112
         22  |   1017.824   1189.864     0.86   0.393    -1320.879    3356.528
         23  |   11193.39    4808.83     2.33   0.020     1741.527    20645.25
         24  |  -6802.696   1968.512    -3.46   0.001    -10671.85   -2933.543
         25  |  -8551.222    1789.62    -4.78   0.000    -12068.76   -5033.684
         26  |  -949.7816    1822.08    -0.52   0.602     -4531.12    2631.557
         27  |   8959.277   4582.077     1.96   0.051    -46.89732    17965.45
         28  |  -3966.501    1617.82    -2.45   0.015    -7146.362   -786.6398
         29  |   -591.783   2255.247    -0.26   0.793    -5024.521    3840.955
         30  |   625.8636   4203.747     0.15   0.882    -7636.694    8888.421
         31  |  -2376.671   2542.877    -0.93   0.351    -7374.753    2621.411
         32  |   3869.214   1215.804     3.18   0.002     1479.525    6258.904
             |
       _cons |  -6424.878   6864.398    -0.94   0.350       -19917    7067.249
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    12.61
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    12.61
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      12.61    0.0004 |       14.15   0.0002 |       12.61

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.49    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      20.71
Kleibergen-Paap Wald rk F statistic                                12.61

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       4.22     P-val=0.0405
Anderson-Rubin Wald test           Chi-sq(1)=      4.74     P-val=0.0295
Stock-Wright LM S statistic        Chi-sq(1)=      6.10     P-val=0.0135

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   158.62
                                                      Prob > F      =   0.0000
Total (centered) SS     =  181155401.4                Centered R2   =   0.9540
Total (uncentered) SS   =  410883949.7                Uncentered R2 =   0.9797
Residual SS             =  8337821.076                Root MSE      =    131.8

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0271004   .0132668     2.04   0.041      .001098    .0531027
  active_exp |  -10.65335   11.88526    -0.90   0.370    -33.94803    12.64133
 cons_exp_l1 |  -281.7754   214.5763    -1.31   0.189    -702.3373    138.7864
         pop |  -76.92592   63.31577    -1.21   0.224    -201.0225    47.17071
   ann_pr_mx |   .0536842   .0347051     1.55   0.122    -.0143365    .1217049
  avg_tmp_mx |  -17.62192    14.6887    -1.20   0.230    -46.41124    11.16739
             |
          yr |
       2004  |   177.7815   66.92093     2.66   0.008     46.61888    308.9441
       2005  |   310.0371   67.45493     4.60   0.000     177.8279    442.2463
       2006  |   419.1619   65.92813     6.36   0.000     289.9451    548.3786
       2007  |   389.2956    56.9744     6.83   0.000     277.6278    500.9634
       2008  |   328.1469   61.30081     5.35   0.000     207.9995    448.2942
       2009  |   204.4415   62.78868     3.26   0.001     81.37795     327.505
       2010  |   202.8023   69.15473     2.93   0.003      67.2615    338.3431
       2011  |   243.3075   75.54111     3.22   0.001      95.2497    391.3654
       2012  |   168.7445   71.88816     2.35   0.019     27.84626    309.6427
       2013  |   214.0905   62.37545     3.43   0.001     91.83682    336.3441
       2014  |   313.4331   65.03436     4.82   0.000     185.9681    440.8981
       2015  |    386.959   71.09692     5.44   0.000     247.6116    526.3064
       2016  |   472.2724   80.15578     5.89   0.000     315.1699    629.3748
       2017  |   22.85713   216.0715     0.11   0.916    -400.6352    446.3495
             |
       mx_id |
          2  |   481.2855   185.2909     2.60   0.009     118.1221    844.4489
          3  |  -344.7855   257.0134    -1.34   0.180    -848.5224    158.9515
          4  |  -354.3006   311.9213    -1.14   0.256     -965.655    257.0539
          5  |   498.0205   322.6444     1.54   0.123     -134.351    1130.392
          6  |   102.9459   281.2287     0.37   0.714    -448.2522     654.144
          7  |    1294.14   514.9131     2.51   0.012     284.9286    2303.351
          8  |   16.10524   193.2938     0.08   0.934    -362.7436     394.954
          9  |    228.723   158.9703     1.44   0.150    -82.85304    540.2991
         10  |  -.4205031   106.4594    -0.00   0.997    -209.0771    208.2361
         11  |   2351.715    908.437     2.59   0.010     571.2112    4132.219
         12  |   1981.556   278.6409     7.11   0.000      1435.43    2527.682
         13  |   1036.341   239.2181     4.33   0.000     567.4821      1505.2
         14  |   488.1682   137.0546     3.56   0.000     219.5461    756.7903
         15  |   2144.449   399.4078     5.37   0.000     1361.624    2927.274
         16  |   2413.258    262.803     9.18   0.000     1898.173    2928.342
         17  |   334.2147   80.94784     4.13   0.000     175.5598    492.8695
         18  |   190.8773   100.8451     1.89   0.058    -6.775347      388.53
         19  |   495.4753   237.7868     2.08   0.037     29.42172    961.5289
         20  |   1079.228   211.2823     5.11   0.000     665.1225    1493.334
         21  |   1315.953   324.3349     4.06   0.000     680.2681    1951.637
         22  |    17.1076    74.8815     0.23   0.819    -129.6575    163.8727
         23  |  -341.0873   346.4538    -0.98   0.325    -1020.124    337.9496
         24  |   641.1767   166.5689     3.85   0.000     314.7076    967.6457
         25  |   642.2015    180.043     3.57   0.000     289.3237    995.0792
         26  |   204.1261   128.3261     1.59   0.112    -47.38838    455.6407
         27  |  -224.6482   321.1481    -0.70   0.484    -854.0869    404.7905
         28  |   518.3996   159.1173     3.26   0.001     206.5355    830.2637
         29  |  -138.5691    123.925    -1.12   0.263    -381.4575    104.3193
         30  |   1357.479   445.4248     3.05   0.002     484.4629    2230.496
         31  |   136.7459   150.7879     0.91   0.364    -158.7929    432.2847
         32  |   198.4579   94.17965     2.11   0.035     13.86918    383.0466
             |
       _cons |   833.5109   417.9707     1.99   0.046     14.30337    1652.718
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.493
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               20.711
                         (Kleibergen-Paap rk Wald F statistic):         12.615
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_l1 pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_l1
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 cons_exp_l1, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. gen sc_cons_l1_w1 = active_exp_w1*cons_exp_l1_w1

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_l1_w1) active_exp_w1 cons_exp_l1_w1 ib(first).yr ib
> (first).mx_id, robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
--------------------------------------------------------------------------------
               |               Robust
dpt_tot_prop~1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
 sc_cons_l1_w1 |   644.1995   179.0877     3.60   0.000     292.2057    996.1933
 active_exp_w1 |  -1512.168   616.3213    -2.45   0.015    -2723.537   -300.7989
cons_exp_l1_w1 |   9597.982    2152.17     4.46   0.000     5367.928    13828.04
               |
            yr |
         2004  |  -2216.512   667.8822    -3.32   0.001    -3529.223   -903.8003
         2005  |  -2461.215   672.0478    -3.66   0.000    -3782.114   -1140.316
         2006  |  -1765.949   623.5893    -2.83   0.005    -2991.603   -540.2948
         2007  |   .1134315   559.8499     0.00   1.000    -1100.262    1100.489
         2008  |   1312.254   804.4931     1.63   0.104    -268.9636    2893.472
         2009  |   2350.575   865.8122     2.71   0.007     648.8356    4052.315
         2010  |   2527.768   1143.124     2.21   0.028     280.9777    4774.559
         2011  |   3791.373   1319.481     2.87   0.004     1197.956     6384.79
         2012  |   6928.375   1383.301     5.01   0.000      4209.52    9647.229
         2013  |   5018.567   1315.702     3.81   0.000     2432.575    7604.558
         2014  |   3054.441   1282.279     2.38   0.018     534.1426     5574.74
         2015  |   2078.942   1271.683     1.63   0.103    -420.5299    4578.413
         2016  |   1551.535   1293.394     1.20   0.231    -990.6089    4093.679
         2017  |  -1727.565   1464.455    -1.18   0.239    -4605.926    1150.796
               |
         mx_id |
            2  |  -8186.446   1021.171    -8.02   0.000    -10193.54   -6179.351
            3  |   3798.977   3381.908     1.12   0.262    -2848.107    10446.06
            4  |   5180.385   3654.622     1.42   0.157    -2002.713    12363.48
            5  |   4021.828   2723.857     1.48   0.141    -1331.867    9375.523
            6  |   6035.493   3543.492     1.70   0.089    -929.1816    13000.17
            7  |  -770.2802   2199.411    -0.35   0.726    -5093.186    3552.626
            8  |   3936.735   2226.484     1.77   0.078    -439.3812    8312.852
            9  |  -10838.43   829.6829   -13.06   0.000    -12469.16   -9207.705
           10  |   4696.357   1255.951     3.74   0.000     2227.807    7164.908
           11  |  -2145.929   988.6555    -2.17   0.031    -4089.115   -202.7429
           12  |    846.514   1734.183     0.49   0.626    -2561.993    4255.021
           13  |   3689.977   2216.463     1.66   0.097    -666.4453    8046.398
           14  |   863.9045   1598.251     0.54   0.589    -2277.431     4005.24
           15  |   -4910.21   674.6339    -7.28   0.000    -6236.191   -3584.228
           16  |  -7672.205    1542.43    -4.97   0.000    -10703.82   -4640.585
           17  |  -1159.271   762.6537    -1.52   0.129    -2658.254    339.7119
           18  |  -5747.691   1048.942    -5.48   0.000    -7809.368   -3686.013
           19  |  -3440.263   872.7558    -3.94   0.000     -5155.65   -1724.876
           20  |   2244.802   1597.331     1.41   0.161    -894.7251    5384.329
           21  |   916.8259   2030.613     0.45   0.652     -3074.31    4907.961
           22  |   2423.896   1034.878     2.34   0.020     389.8611     4457.93
           23  |   7326.825   3932.876     1.86   0.063    -403.1776    15056.83
           24  |  -6273.845   1729.408    -3.63   0.000    -9672.967   -2874.723
           25  |  -9966.064   906.0068   -11.00   0.000    -11746.81   -8185.323
           26  |  -1561.491    1418.28    -1.10   0.272    -4349.096    1226.114
           27  |   5917.107   3603.503     1.64   0.101    -1165.518    12999.73
           28  |  -4419.946   696.1335    -6.35   0.000    -5788.185   -3051.707
           29  |   9.501719   1995.514     0.00   0.996    -3912.647     3931.65
           30  |   3049.568    1976.44     1.54   0.124    -835.0923    6934.228
           31  |  -5655.584   1324.159    -4.27   0.000    -8258.196   -3052.972
           32  |   4338.194   1167.076     3.72   0.000     2044.325    6632.063
               |
         _cons |  -13306.49   5119.085    -2.60   0.010    -23367.96   -3245.012
--------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    12.94
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    12.94
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      12.94    0.0004 |       14.41   0.0001 |       12.94

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.71    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      19.39
Kleibergen-Paap Wald rk F statistic                                12.94

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       4.23     P-val=0.0404
Anderson-Rubin Wald test           Chi-sq(1)=      4.71     P-val=0.0300
Stock-Wright LM S statistic        Chi-sq(1)=      5.37     P-val=0.0205

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =   160.57
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9527
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9792
Residual SS             =  8526543.935                Root MSE      =    133.3

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |    .029264   .0144128     2.03   0.042     .0010154    .0575126
  active_exp_w1 |  -11.57811    12.9019    -0.90   0.370    -36.86538    13.70916
 cons_exp_l1_w1 |  -255.2935   216.4916    -1.18   0.238    -679.6093    169.0223
                |
             yr |
          2004  |   158.0733    62.8499     2.52   0.012     34.88973    281.2568
          2005  |   269.9178   64.35538     4.19   0.000     143.7835     396.052
          2006  |   370.7766   61.29928     6.05   0.000     250.6322     490.921
          2007  |    334.469   51.69784     6.47   0.000     233.1431    435.7949
          2008  |   265.0977   56.10532     4.73   0.000     155.1333    375.0621
          2009  |   119.2977   55.29485     2.16   0.031     10.92178    227.6736
          2010  |   136.4287   61.74792     2.21   0.027     15.40501    257.4524
          2011  |   157.9164    67.1554     2.35   0.019     26.29422    289.5385
          2012  |   88.79829   67.55826     1.31   0.189    -43.61347    221.2101
          2013  |    143.482   56.48362     2.54   0.011     32.77613    254.1878
          2014  |   242.9768   55.61351     4.37   0.000     133.9764    351.9773
          2015  |   306.7208   60.38075     5.08   0.000     188.3767    425.0649
          2016  |   379.4741   69.08342     5.49   0.000     244.0731    514.8752
          2017  |   93.90964    102.357     0.92   0.359    -106.7063    294.5256
                |
          mx_id |
             2  |   346.1629   132.1655     2.62   0.009     87.12328    605.2026
             3  |  -334.5016   222.0663    -1.51   0.132    -769.7435    100.7402
             4  |  -361.9863   250.5413    -1.44   0.149    -853.0383    129.0657
             5  |   233.9792    184.832     1.27   0.206    -128.2849    596.2434
             6  |   10.19619   249.6209     0.04   0.967    -479.0518    499.4442
             7  |   873.2991   130.8508     6.67   0.000     616.8362    1129.762
             8  |  -116.6566   155.6072    -0.75   0.453    -421.6412    188.3279
             9  |   167.0521   171.1798     0.98   0.329    -168.4542    502.5584
            10  |  -13.13813   106.6985    -0.12   0.902    -222.2632     195.987
            11  |   1372.159   86.04789    15.95   0.000     1203.508     1540.81
            12  |   1642.405   84.59155    19.42   0.000     1476.609    1808.202
            13  |   827.2917   153.5886     5.39   0.000     526.2637     1128.32
            14  |   447.1227   98.76346     4.53   0.000     253.5499    640.6955
            15  |     1652.2   98.49293    16.77   0.000     1459.158    1845.243
            16  |   2094.791   160.8054    13.03   0.000     1779.618    2409.964
            17  |   251.4424    39.5965     6.35   0.000     173.8347    329.0502
            18  |   162.4804   107.8003     1.51   0.132    -48.80433    373.7651
            19  |   187.6118   70.04196     2.68   0.007     50.33204    324.8915
            20  |   882.0123   108.7205     8.11   0.000      668.924    1095.101
            21  |   1013.258   126.5436     8.01   0.000      765.237    1261.279
            22  |   12.10549   60.69984     0.20   0.842     -106.864     131.075
            23  |  -389.1182   285.1899    -1.36   0.172    -948.0802    169.8438
            24  |     485.67   141.1722     3.44   0.001     208.9775    762.3625
            25  |   438.7003   154.7494     2.83   0.005     135.3971    742.0035
            26  |   48.59243   69.97791     0.69   0.487    -88.56175    185.7466
            27  |  -311.1774    248.901    -1.25   0.211    -799.0144    176.6596
            28  |    307.686   72.68914     4.23   0.000     165.2179     450.154
            29  |  -44.25895   114.3512    -0.39   0.699    -268.3832    179.8653
            30  |   862.7028    149.276     5.78   0.000     570.1273    1155.278
            31  |  -5.296368   99.17603    -0.05   0.957    -199.6778    189.0851
            32  |   196.5388   97.32566     2.02   0.043      5.78404    387.2936
                |
          _cons |   424.8935    400.105     1.06   0.288    -359.2978    1209.085
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.707
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               19.387
                         (Kleibergen-Paap rk Wald F statistic):         12.939
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_l1_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_l1_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_l1_w1) active_exp_w1 cons_exp_l1_w1 pop ann_pr_mx a
> vg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
--------------------------------------------------------------------------------
               |               Robust
dpt_tot_prop~1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
 sc_cons_l1_w1 |   642.4912    181.459     3.54   0.000     285.8296    999.1528
 active_exp_w1 |  -1528.556   629.1608    -2.43   0.016    -2765.185   -291.9264
cons_exp_l1_w1 |   9552.972   2186.124     4.37   0.000     5256.097    13849.85
           pop |   740.6323   475.6274     1.56   0.120    -194.2238    1675.488
     ann_pr_mx |   .1717232   .4969141     0.35   0.730    -.8049724    1.148419
    avg_tmp_mx |  -460.6368   241.8563    -1.90   0.058    -936.0107    14.73704
               |
            yr |
         2004  |  -2351.405   729.2956    -3.22   0.001    -3784.852   -917.9585
         2005  |  -2384.682   758.5063    -3.14   0.002    -3875.543   -893.8215
         2006  |  -1760.822   746.7374    -2.36   0.019    -3228.551   -293.0935
         2007  |  -79.03059   691.7522    -0.11   0.909    -1438.685    1280.624
         2008  |   1132.813   909.4145     1.25   0.214    -654.6614    2920.287
         2009  |   2370.809   1012.139     2.34   0.020     381.4277    4360.191
         2010  |   2199.003   1248.218     1.76   0.079    -254.3976    4652.403
         2011  |   3781.359   1434.536     2.64   0.009     961.7463    6600.972
         2012  |   6806.049   1465.808     4.64   0.000     3924.971    9687.128
         2013  |   4755.605   1376.487     3.45   0.001      2050.09     7461.12
         2014  |   2776.294   1341.444     2.07   0.039     139.6573    5412.931
         2015  |   1897.449   1340.258     1.42   0.158    -736.8584    4531.756
         2016  |   1393.039   1369.053     1.02   0.309    -1297.864    4083.942
         2017  |  -6674.959   3271.249    -2.04   0.042    -13104.67    -245.248
               |
         mx_id |
            2  |  -9692.482   1374.629    -7.05   0.000    -12394.35   -6990.619
            3  |   6242.858   3590.373     1.74   0.083    -814.0992    13299.82
            4  |     8779.1   4249.385     2.07   0.039     426.8393    17131.36
            5  |   3876.514   3772.933     1.03   0.305     -3539.27     11292.3
            6  |   3683.852   3895.261     0.95   0.345     -3972.37    11340.07
            7  |  -9130.063   5039.307    -1.81   0.071    -19034.93    774.8058
            8  |   3879.001   2492.609     1.56   0.120    -1020.276    8778.279
            9  |  -6898.787   2119.258    -3.26   0.001    -11064.24   -2733.339
           10  |   4131.308   1296.108     3.19   0.002     1583.778    6678.838
           11  |   -13562.7   6935.565    -1.96   0.051     -27194.7    69.30882
           12  |  -2067.437   2615.907    -0.79   0.430    -7209.061    3074.187
           13  |   4696.928   2898.779     1.62   0.106    -1000.686    10394.54
           14  |   -1098.41   1918.315    -0.57   0.567      -4868.9     2672.08
           15  |  -8338.551   2891.473    -2.88   0.004     -14021.8   -2655.297
           16  |  -8218.823   2144.468    -3.83   0.000    -12433.82   -4003.823
           17  |   151.5513   1266.918     0.12   0.905    -2338.604    2641.706
           18  |  -3985.228   1405.906    -2.83   0.005    -6748.567   -1221.888
           19  |  -4517.106   2011.607    -2.25   0.025    -8470.964   -563.2481
           20  |   1857.309    2300.99     0.81   0.420    -2665.337    6379.955
           21  |  -2076.016   3202.849    -0.65   0.517    -8371.287    4219.255
           22  |   1025.384   1191.348     0.86   0.390    -1316.237    3367.006
           23  |   10700.19   4558.833     2.35   0.019     1739.698    19660.67
           24  |  -6418.148   1849.109    -3.47   0.001    -10052.61   -2783.684
           25  |  -8366.518   1741.135    -4.81   0.000    -11788.76   -4944.279
           26  |  -990.7543   1763.906    -0.56   0.575     -4457.75    2476.241
           27  |   8599.534   4375.791     1.97   0.050    -1.179885    17200.25
           28  |  -3855.411    1570.75    -2.45   0.015    -6942.756   -768.0673
           29  |  -885.4672   2130.473    -0.42   0.678     -5072.96    3302.025
           30  |   776.8908   4024.215     0.19   0.847    -7132.793    8686.575
           31  |  -2468.052   2487.571    -0.99   0.322    -7357.429    2421.324
           32  |   3764.553    1182.23     3.18   0.002     1440.853    6088.253
               |
         _cons |    -5666.7   6542.815    -0.87   0.387    -18526.75    7193.348
--------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    12.54
  Prob > F      =   0.0004
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    12.54
  Prob > F      =   0.0004



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      12.54    0.0004 |       14.06   0.0002 |       12.54

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.34    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      19.37
Kleibergen-Paap Wald rk F statistic                                12.54

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       3.76     P-val=0.0532
Anderson-Rubin Wald test           Chi-sq(1)=      4.21     P-val=0.0401
Stock-Wright LM S statistic        Chi-sq(1)=      5.31     P-val=0.0212

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =   164.25
                                                      Prob > F      =   0.0000
Total (centered) SS     =    180225812                Centered R2   =   0.9547
Total (uncentered) SS   =  409645000.8                Uncentered R2 =   0.9801
Residual SS             =  8158491.312                Root MSE      =    130.4

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0269943    .013824     1.95   0.051    -.0001001    .0540888
  active_exp_w1 |  -10.25864   11.99395    -0.86   0.392    -33.76635    13.24907
 cons_exp_l1_w1 |  -244.3117   212.6537    -1.15   0.251    -661.1052    172.4818
            pop |  -75.42946   63.28933    -1.19   0.233    -199.4743    48.61534
      ann_pr_mx |   .0538121   .0345158     1.56   0.119    -.0138376    .1214617
     avg_tmp_mx |   -17.5673   14.86585    -1.18   0.237    -46.70383    11.56923
                |
             yr |
          2004  |   167.4277   66.01541     2.54   0.011     38.03992    296.8156
          2005  |    299.353   66.51565     4.50   0.000     168.9848    429.7213
          2006  |   408.5233   64.97565     6.29   0.000     281.1734    535.8732
          2007  |   378.7641   55.92936     6.77   0.000     269.1446    488.3836
          2008  |   313.5129   60.27464     5.20   0.000     195.3768    431.6491
          2009  |   189.6592   62.83592     3.02   0.003     66.50305    312.8153
          2010  |   187.0832   68.03769     2.75   0.006     53.73175    320.4346
          2011  |   231.5191   75.34946     3.07   0.002     83.83691    379.2014
          2012  |   165.0193   72.72491     2.27   0.023     22.48113    307.5576
          2013  |    206.996    62.2677     3.32   0.001     84.95358    329.0385
          2014  |    306.065   64.31966     4.76   0.000     180.0008    432.1292
          2015  |   379.0692   70.26789     5.39   0.000     241.3466    516.7917
          2016  |   456.0128   78.25852     5.83   0.000      302.629    609.3967
          2017  |   13.74193   219.4996     0.06   0.950    -416.4693    443.9532
                |
          mx_id |
             2  |   486.2502   189.5567     2.57   0.010     114.7259    857.7745
             3  |    -287.81   251.6613    -1.14   0.253     -781.057     205.437
             4  |  -294.6809   307.6598    -0.96   0.338     -897.683    308.3213
             5  |    536.706   321.1812     1.67   0.095    -92.79757     1166.21
             6  |    157.839   275.9052     0.57   0.567    -382.9252    698.6032
             7  |   1317.379   515.1871     2.56   0.011     307.6312    2327.128
             8  |   49.32482   190.8159     0.26   0.796    -324.6674    423.3171
             9  |   220.1891   159.8899     1.38   0.168    -93.18932    533.5675
            10  |   14.84253   105.7812     0.14   0.888    -192.4849    222.1699
            11  |   2343.944    908.412     2.58   0.010     563.4893    4124.399
            12  |   1972.827   278.5166     7.08   0.000     1426.944    2518.709
            13  |    1068.62   237.9652     4.49   0.000      602.217    1535.023
            14  |   510.8178   135.6614     3.77   0.000     244.9263    776.7093
            15  |   2131.904    399.429     5.34   0.000     1349.038    2914.771
            16  |   2371.969   257.4198     9.21   0.000     1867.435    2876.503
            17  |   338.4446   81.08378     4.17   0.000     179.5234    497.3659
            18  |   178.1998   100.1403     1.78   0.075    -18.07161    374.4713
            19  |   499.7332   238.2532     2.10   0.036     32.76542     966.701
            20  |   1100.125   210.5657     5.22   0.000     687.4239    1512.826
            21  |   1341.429   323.6611     4.14   0.000     707.0644    1975.793
            22  |   19.00577   74.85803     0.25   0.800    -127.7133    165.7248
            23  |  -276.0865   342.4395    -0.81   0.420    -947.2556    395.0825
            24  |   612.1125   164.4205     3.72   0.000     289.8541    934.3708
            25  |   632.8264   181.4832     3.49   0.000     277.1258     988.527
            26  |   218.2769    127.967     1.71   0.088    -32.53372    469.0876
            27  |  -168.4972   318.0795    -0.53   0.596    -791.9215    454.9271
            28  |   519.6962   159.7107     3.25   0.001      206.669    832.7234
            29  |  -107.1487     121.37    -0.88   0.377    -345.0296    130.7321
            30  |   1378.848   445.2921     3.10   0.002      506.092    2251.605
            31  |   151.8667    151.467     1.00   0.316    -145.0031    448.7366
            32  |   211.7212   93.65781     2.26   0.024      28.1553    395.2872
                |
          _cons |   746.6137   408.8551     1.83   0.068    -54.72767    1547.955
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.338
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               19.368
                         (Kleibergen-Paap rk Wald F statistic):         12.537
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_l1_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_l1_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Set notes in \scriptsize. Next, move final eight lines of firs
> t table to end of second table. Delete \midrule between the tables. Penultimately, consolidate notes b
> y moving all of them from \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which sho
> uld sit between \end{tabular} and \end{threeparttable}. Last, separate the terms in Kleibergen-Paap F 
> statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_l1.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}",
>  nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0.5
> cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_l1 "\hspace{0.5cm} Partisanship (lagged)
> " pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hs
> pace{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2
> }" "\textit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1
>  0 1 0) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of D
> eportations on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 d
> pt_tot_prop active_exp_w1 active_exp cons_exp_l1_w1 cons_exp_l1) stats(N F Fp widstat, fmt(0 3 3 3) la
> bel(Observations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust stand
> ard errors in parentheses. All models contain state and year fixed effects.") collabels(none) noobs bo
> oktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_l1.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_l1.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_l
> 1.tex", append refcat(sc_cons_l1 "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1
>  ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_l1 "\hspace{0.5cm} Policy $\times$ Partisanship (lagged)
> " active_exp "\hspace{0.5cm} Policy" cons_exp_l1 "\hspace{0.5cm} Partisanship (lagged)" pop "\hspace{0
> .5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} Temp
> erature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_l1_w1 sc_cons_l1 active_exp_w1 
> active_exp cons_exp_l1_w1 cons_exp_l1) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_l1.tex)

. 
. 
. 
. /***** Z scores of remittance flows *****/
. /** Instrumental variable regression with annual Z scores **/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. eststo: xi: ivreg2 ann_z (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw ib(first).yr ib(first).mx_
> id, robust first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      51  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   932.7882   186.6763     5.00   0.000      565.879    1299.697
  active_exp |  -2713.358   625.6173    -4.34   0.000    -3942.998   -1483.718
cons_exp_raw |  -1675.798   1980.943    -0.85   0.398    -5569.308    2217.713
             |
          yr |
       2004  |   453.8383   580.2747     0.78   0.435    -686.6819    1594.359
       2005  |   207.5883   586.0168     0.35   0.723    -944.2179    1359.395
       2006  |   904.4008   533.6717     1.69   0.091     -144.522    1953.324
       2007  |   2670.463   463.1673     5.77   0.000     1760.116    3580.811
       2008  |     4679.1   565.4618     8.27   0.000     3567.694    5790.506
       2009  |   6044.822   641.0978     9.43   0.000     4784.755    7304.889
       2010  |   7979.067   877.2665     9.10   0.000     6254.814    9703.319
       2011  |   10219.05    1220.36     8.37   0.000     7820.451    12617.65
       2012  |   10274.86   1270.399     8.09   0.000      7777.91    12771.81
       2013  |   8353.455   1191.452     7.01   0.000     6011.677    10695.23
       2014  |    6389.33   1179.748     5.42   0.000     4070.556    8708.104
       2015  |    5413.83   1184.845     4.57   0.000     3085.037    7742.623
       2016  |    5923.06   1209.056     4.90   0.000      3546.68     8299.44
       2017  |   2639.591   1359.171     1.94   0.053    -31.83773     5311.02
             |
       mx_id |
          2  |  -10470.94   942.0968   -11.11   0.000    -12322.61   -8619.262
          3  |  -13556.58   3254.315    -4.17   0.000    -19952.88   -7160.278
          4  |  -13549.44   3418.359    -3.96   0.000    -20268.17   -6830.718
          5  |  -9739.211   2545.269    -3.83   0.000     -14741.9   -4736.526
          6  |  -12149.69    3316.15    -3.66   0.000    -18667.53   -5631.857
          7  |   -11445.8   2065.662    -5.54   0.000    -15505.83   -7385.779
          8  |  -7127.905   2067.392    -3.45   0.001    -11191.33   -3064.481
          9  |  -8144.555   786.1286   -10.36   0.000    -9689.677   -6599.432
         10  |  -110.9606   1167.178    -0.10   0.924    -2405.029    2183.108
         11  |  -6232.944   912.7817    -6.83   0.000    -8027.001   -4438.886
         12  |   6824.366   2019.409     3.38   0.001      2855.25    10793.48
         13  |   -7331.87   2061.548    -3.56   0.000    -11383.81   -3279.931
         14  |  -6823.182    1468.12    -4.65   0.000    -9708.747   -3937.617
         15  |  -3903.248   660.7549    -5.91   0.000    -5201.951   -2604.545
         16  |  -1506.533   1436.654    -1.05   0.295    -4330.252    1317.185
         17  |  -2801.666   724.9068    -3.86   0.000    -4226.458   -1376.874
         18  |   -1931.85   1057.272    -1.83   0.068    -4009.899    146.2003
         19  |  -6671.313   800.3116    -8.34   0.000    -8244.312   -5098.314
         20  |   -5365.25    1483.31    -3.62   0.000     -8280.67   -2449.829
         21  |  -9014.414   1905.937    -4.73   0.000     -12760.5   -5268.327
         22  |   1614.586    1049.44     1.54   0.125    -448.0706    3677.243
         23  |  -12763.41   3622.104    -3.52   0.000    -19882.59   -5644.221
         24  |   1483.051   1821.392     0.81   0.416    -2096.865    5062.967
         25  |  -8005.737   860.2252    -9.31   0.000    -9696.496   -6314.979
         26  |  -6608.057   1288.861    -5.13   0.000    -9141.292   -4074.823
         27  |   -12265.7   3260.845    -3.76   0.000    -18674.84   -5856.567
         28  |  -6103.251   650.0265    -9.39   0.000    -7380.867   -4825.635
         29  |  -9691.193   1862.457    -5.20   0.000    -13351.82   -6030.565
         30  |   -6693.74   1823.416    -3.67   0.000    -10277.63   -3109.847
         31  |  -10746.27   1247.123    -8.62   0.000    -13197.47   -8295.076
         32  |   222.7788   1095.281     0.20   0.839    -1929.978    2375.536
             |
       _cons |   13119.39   5144.362     2.55   0.011     3008.234    23230.55
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    24.97
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      24.97    0.0000 |       27.81   0.0000 |       24.97

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.76    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.55
Kleibergen-Paap Wald rk F statistic                                24.97

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       9.50     P-val=0.0022
Anderson-Rubin Wald test           Chi-sq(1)=     10.58     P-val=0.0011
Stock-Wright LM S statistic        Chi-sq(1)=     12.02     P-val=0.0005

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =    24.70
                                                      Prob > F      =   0.0000
Total (centered) SS     =  441.0025777                Centered R2   =   0.6155
Total (uncentered) SS   =  442.1323867                Uncentered R2 =   0.6165
Residual SS             =  169.5446909                Root MSE      =    .5943

------------------------------------------------------------------------------
             |               Robust
       ann_z | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0001067   .0000391     2.72   0.006     .0000299    .0001834
  active_exp |  -.0627313   .0454727    -1.38   0.168    -.1518561    .0263936
cons_exp_raw |  -2.333968   .5441907    -4.29   0.000    -3.400562   -1.267373
             |
          yr |
       2004  |     .89395   .1342953     6.66   0.000     .6307361    1.157164
       2005  |   1.712503   .1319878    12.97   0.000     1.453811    1.971194
       2006  |   2.497091   .1617317    15.44   0.000     2.180103     2.81408
       2007  |   2.466736    .185425    13.30   0.000      2.10331    2.830162
       2008  |   1.375639   .2534055     5.43   0.000     .8789732    1.872305
       2009  |    .443061    .267814     1.65   0.098    -.0818448    .9679669
       2010  |   .5686642   .2452069     2.32   0.020     .0880674    1.049261
       2011  |   .8020702   .2954553     2.71   0.007     .2229885    1.381152
       2012  |   .8949931   .2863733     3.13   0.002     .3337117    1.456275
       2013  |   1.150416   .2538135     4.53   0.000     .6529509    1.647881
       2014  |   1.655555   .2277218     7.27   0.000     1.209229    2.101882
       2015  |   2.031301   .2163836     9.39   0.000     1.607197    2.455405
       2016  |   2.189865   .2206014     9.93   0.000     1.757494    2.622235
       2017  |   2.970716    .249015    11.93   0.000     2.482655    3.458776
             |
       mx_id |
          2  |   .4933515   .5159429     0.96   0.339     -.517878    1.504581
          3  |  -2.334992   .9489965    -2.46   0.014    -4.194991   -.4749934
          4  |  -2.615956   .9614415    -2.72   0.007    -4.500347   -.7315658
          5  |  -1.967651   .7689593    -2.56   0.011    -3.474784   -.4605184
          6  |  -2.631593   .9281818    -2.84   0.005    -4.450796   -.8123903
          7  |  -1.106574   .6712413    -1.65   0.099    -2.422183    .2090348
          8  |  -1.597839   .5957992    -2.68   0.007    -2.765584   -.4300941
          9  |   1.290668    .411659     3.14   0.002     .4838314    2.097505
         10  |  -.9730988   .3348857    -2.91   0.004    -1.629463    -.316735
         11  |   -.232085   .3807172    -0.61   0.542    -.9782771    .5141071
         12  |   .4066775   .4438243     0.92   0.360    -.4632022    1.276557
         13  |  -1.591661   .6022456    -2.64   0.008    -2.772041   -.4112816
         14  |  -.9350986   .4932826    -1.90   0.058    -1.901915    .0317175
         15  |     .54596   .2650757     2.06   0.039     .0264211    1.065499
         16  |   1.358064   .3746604     3.62   0.000     .6237435    2.092385
         17  |  -.0734782   .2347883    -0.31   0.754    -.5336549    .3866985
         18  |   .9236865   .2782122     3.32   0.001     .3784006    1.468972
         19  |    .083527    .369939     0.23   0.821      -.64154    .8085941
         20  |   -1.06813   .4530294    -2.36   0.018    -1.956051   -.1802085
         21  |  -1.185332   .6098163    -1.94   0.052     -2.38055    .0098861
         22  |   -.304103   .2534165    -1.20   0.230    -.8007902    .1925842
         23  |  -2.982422   1.007279    -2.96   0.003    -4.956652   -1.008191
         24  |   1.515865   .4534572     3.34   0.001     .6271047    2.404624
         25  |   1.201893   .4010905     3.00   0.003     .4157696    1.988016
         26  |  -.3443618   .4028002    -0.85   0.393    -1.133836     .445112
         27  |  -2.627729   .9249333    -2.84   0.004    -4.440565   -.8148933
         28  |   .2893895   .3451837     0.84   0.402    -.3871581    .9659371
         29  |  -1.055975   .6298114    -1.68   0.094    -2.290382    .1784327
         30  |  -1.400189    .589909    -2.37   0.018     -2.55639   -.2439891
         31  |  -.0463838   .5351883    -0.09   0.931    -1.095333    1.002566
         32  |  -.8442735   .3052118    -2.77   0.006    -1.442478   -.2460693
             |
       _cons |   3.263049   1.420154     2.30   0.022     .4795977      6.0465
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.763
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.549
                         (Kleibergen-Paap rk Wald F statistic):         24.968
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id
                      6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 ann_z (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx i
> b(first).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      54  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    480
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |    944.018   186.3282     5.07   0.000     577.7859     1310.25
  active_exp |  -2771.099   631.1621    -4.39   0.000    -4011.662   -1530.536
cons_exp_raw |  -1346.578    1980.45    -0.68   0.497    -5239.197    2546.041
         pop |   997.1485   495.0857     2.01   0.045     24.04652     1970.25
   ann_pr_mx |   .7243704    .484101     1.50   0.135    -.2271408    1.675881
  avg_tmp_mx |  -474.5545   235.7083    -2.01   0.045    -937.8444   -11.26461
             |
          yr |
       2004  |     412.66    608.961     0.68   0.498    -784.2663    1609.586
       2005  |   478.0201   628.8029     0.76   0.448    -757.9059    1713.946
       2006  |   1129.431   609.9866     1.85   0.065    -69.51154    2328.373
       2007  |   2793.947   546.7354     5.11   0.000     1719.327    3868.568
       2008  |   4743.609   654.4758     7.25   0.000     3457.222    6029.996
       2009  |   6387.898   768.4572     8.31   0.000     4877.478    7898.318
       2010  |   7882.862   914.4176     8.62   0.000     6085.554     9680.17
       2011  |   10520.24   1241.283     8.48   0.000     8080.473    12960.01
       2012  |   10454.91   1299.923     8.04   0.000     7899.882    13009.94
       2013  |   8300.042   1201.536     6.91   0.000     5938.397    10661.69
       2014  |   6312.348   1187.489     5.32   0.000     3978.312    8646.385
       2015  |   5465.299   1200.431     4.55   0.000     3105.827    7824.772
       2016  |   6040.037    1216.25     4.97   0.000      3649.47    8430.604
       2017  |  -1851.822   3107.933    -0.60   0.552    -7960.533     4256.89
             |
       mx_id |
          2  |  -12179.56    1377.09    -8.84   0.000    -14886.26   -9472.863
          3  |  -10137.43   3501.713    -2.89   0.004    -17020.13   -3254.737
          4  |  -9522.089   3938.634    -2.42   0.016    -17263.56   -1780.616
          5  |  -10967.27   3575.271    -3.07   0.002    -17994.54   -3939.995
          6  |  -14440.64   3719.662    -3.88   0.000    -21751.72   -7129.563
          7  |  -21764.07   5073.079    -4.29   0.000    -31735.31   -11792.82
          8  |  -7104.502   2394.213    -2.97   0.003    -11810.38   -2398.625
          9  |  -4212.493   2063.232    -2.04   0.042    -8267.821   -157.1659
         10  |  -672.9727    1202.15    -0.56   0.576    -3035.825     1689.88
         11  |  -21413.53   7187.842    -2.98   0.003    -35541.39   -7285.667
         12  |    2585.68   2807.554     0.92   0.358    -2932.628    8103.989
         13  |  -6640.731    2783.45    -2.39   0.017    -12111.66   -1169.798
         14  |  -9015.494   1798.004    -5.01   0.000    -12549.51   -5481.478
         15  |  -9053.522   2995.954    -3.02   0.003    -14942.14   -3164.908
         16  |  -3151.574   2072.965    -1.52   0.129    -7226.032    922.8845
         17  |  -1733.674   1224.222    -1.42   0.157    -4139.909     672.562
         18  |   -542.592   1400.155    -0.39   0.699    -3294.628    2209.444
         19  |  -8523.603   2042.554    -4.17   0.000    -12538.29   -4508.917
         20  |  -6483.778   2214.176    -2.93   0.004    -10835.79   -2131.766
         21  |  -13154.38   3168.737    -4.15   0.000     -19382.6   -6926.156
         22  |  -112.4881   1194.574    -0.09   0.925     -2460.45    2235.474
         23  |  -9101.987     4171.5    -2.18   0.030    -17301.16   -902.8102
         24  |   640.3683   1881.614     0.34   0.734    -3057.985    4338.722
         25  |  -6875.918   1690.185    -4.07   0.000    -10198.02   -3553.821
         26  |  -6102.795   1712.131    -3.56   0.000    -9468.025   -2737.564
         27  |   -9893.05   3929.072    -2.52   0.012    -17615.73   -2170.372
         28  |  -6072.811   1561.188    -3.89   0.000    -9141.361   -3004.262
         29  |  -10500.13   1930.555    -5.44   0.000    -14294.68   -6705.582
         30  |  -10846.36   3996.692    -2.71   0.007    -18701.95   -2990.775
         31  |  -7753.845   2403.735    -3.23   0.001    -12478.44   -3029.251
         32  |  -297.7551   1105.645    -0.27   0.788    -2470.926    1875.415
             |
       _cons |   19280.09   6397.479     3.01   0.003     6705.703    31854.48
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    25.67
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      25.67    0.0000 |       28.79   0.0000 |       25.67

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.16    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      41.07
Kleibergen-Paap Wald rk F statistic                                25.67

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       8.60     P-val=0.0035
Anderson-Rubin Wald test           Chi-sq(1)=      9.65     P-val=0.0019
Stock-Wright LM S statistic        Chi-sq(1)=     11.37     P-val=0.0007

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =    26.31
                                                      Prob > F      =   0.0000
Total (centered) SS     =  441.0025777                Centered R2   =   0.6391
Total (uncentered) SS   =  442.1323867                Uncentered R2 =   0.6400
Residual SS             =  159.1624255                Root MSE      =    .5758

------------------------------------------------------------------------------
             |               Robust
       ann_z | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0000993   .0000374     2.66   0.008      .000026    .0001726
  active_exp |  -.0447756    .044471    -1.01   0.314    -.1319371    .0423859
cons_exp_raw |  -2.190268   .5395174    -4.06   0.000    -3.247702   -1.132833
         pop |  -.6694381   .1640255    -4.08   0.000    -.9909222    -.347954
   ann_pr_mx |   .0002015   .0001358     1.48   0.138    -.0000648    .0004677
  avg_tmp_mx |    .011311   .0620316     0.18   0.855    -.1102687    .1328907
             |
          yr |
       2004  |    .965166   .1343163     7.19   0.000     .7019109    1.228421
       2005  |   1.838659   .1392243    13.21   0.000     1.565784    2.111533
       2006  |   2.682637   .1711241    15.68   0.000      2.34724    3.018034
       2007  |   2.703754   .1952032    13.85   0.000     2.321162    3.086345
       2008  |   1.697651   .2602982     6.52   0.000     1.187475    2.207826
       2009  |   .8276792   .2860486     2.89   0.004     .2670343    1.388324
       2010  |   .9256092   .2491233     3.72   0.000     .4373365    1.413882
       2011  |    1.19616     .30611     3.91   0.000     .5961955    1.796125
       2012  |   1.306311   .2971172     4.40   0.000     .7239725     1.88865
       2013  |   1.544303   .2610273     5.92   0.000     1.032699    2.055907
       2014  |   2.063957   .2403442     8.59   0.000     1.592891    2.535023
       2015  |   2.472585   .2359707    10.48   0.000     2.010091    2.935079
       2016  |   2.678795   .2442152    10.97   0.000     2.200142    3.157448
       2017  |   3.706821   .7704087     4.81   0.000     2.196848    5.216794
             |
       mx_id |
          2  |   1.837322   .6304529     2.91   0.004     .6016566    3.072987
          3  |  -2.536552   .9628562    -2.63   0.008    -4.423716   -.6493889
          4  |  -2.904048   1.043004    -2.78   0.005    -4.948299   -.8597976
          5  |   .2245137   1.000726     0.22   0.822    -1.736872      2.1859
          6  |  -.9241506   1.032053    -0.90   0.371    -2.946936    1.098635
          7  |   4.070758   1.648151     2.47   0.014     .8404405    7.301076
          8  |  -.4492983   .6599084    -0.68   0.496    -1.742695    .8440985
          9  |   .6686485   .5965112     1.12   0.262     -.500492    1.837789
         10  |  -.6169821   .3420889    -1.80   0.071    -1.287464    .0534999
         11  |   9.001847   2.439795     3.69   0.000     4.219936    13.78376
         12  |    3.18533   .7768566     4.10   0.000     1.662719    4.707941
         13  |  -.1987134   .7484348    -0.27   0.791    -1.665619    1.268192
         14  |   .0832328   .5994818     0.14   0.890     -1.09173    1.258196
         15  |    4.52123   1.011654     4.47   0.000     2.538425    6.504035
         16  |   3.246791   .6188481     5.25   0.000     2.033871    4.459711
         17  |   .1901039   .3300172     0.58   0.565    -.4567178    .8369257
         18  |   .6092701   .3637022     1.68   0.094    -.1035731    1.322113
         19  |   2.390321    .688626     3.47   0.001     1.040638    3.740003
         20  |   .5458066   .6441673     0.85   0.397    -.7167381    1.808351
         21  |   1.836564    1.01835     1.80   0.071    -.1593652    3.832494
         22  |   .1244901   .3140175     0.40   0.692    -.4909729    .7399532
         23  |  -2.912763   1.094927    -2.66   0.008    -5.058779   -.7667459
         24  |   2.296034   .4969481     4.62   0.000     1.322034    3.270035
         25  |   2.064408   .5261154     3.92   0.000     1.033241    3.095575
         26  |   .6269338   .4808189     1.30   0.192    -.3154539    1.569322
         27  |  -2.147713   1.033216    -2.08   0.038    -4.172779   -.1226474
         28  |    1.54005   .5175353     2.98   0.003     .5256992      2.5544
         29  |  -1.063102   .6474664    -1.64   0.101    -2.332113    .2059089
         30  |   2.642726   1.207805     2.19   0.029     .2754721    5.009979
         31  |   .2643564   .6830171     0.39   0.699    -1.074332    1.603045
         32  |  -.5806275   .3087743    -1.88   0.060    -1.185814     .024559
             |
       _cons |    3.11353    1.78105     1.75   0.080    -.3772631    6.604323
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.156
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               41.072
                         (Kleibergen-Paap rk Wald F statistic):         25.669
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id
                      3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id
                      10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id
                      16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id
                      22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id
                      28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 ann_z, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. // Without control variables
. eststo: xi: ivreg2 ann_z_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 ib(first).y
> r ib(first).mx_id, robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      51  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   887.1527   176.2034     5.03   0.000     540.8279    1233.478
  active_exp_w1 |  -2573.898   595.6586    -4.32   0.000    -3744.655   -1403.141
cons_exp_raw_w1 |  -1558.945   1950.592    -0.80   0.425      -5392.8     2274.91
                |
             yr |
          2004  |   440.5596   571.2436     0.77   0.441    -682.2101    1563.329
          2005  |   195.8562   577.1186     0.34   0.734    -938.4608    1330.173
          2006  |   891.1221   524.3368     1.70   0.090    -139.4531    1921.697
          2007  |   2657.185   455.1964     5.84   0.000     1762.504    3551.865
          2008  |   4693.706   558.9998     8.40   0.000     3595.002    5792.411
          2009  |   6041.242   637.2722     9.48   0.000     4788.694     7293.79
          2010  |   7880.972   862.1986     9.14   0.000     6186.335    9575.609
          2011  |   9916.314   1137.255     8.72   0.000     7681.057    12151.57
          2012  |   10004.74   1210.734     8.26   0.000      7625.06    12384.41
          2013  |   8187.085   1165.977     7.02   0.000     5895.376    10478.79
          2014  |    6222.96   1149.828     5.41   0.000     3962.992    8482.928
          2015  |    5247.46   1150.467     4.56   0.000     2986.236    7508.684
          2016  |   5738.617   1169.792     4.91   0.000     3439.411    8037.823
          2017  |   2459.517   1320.092     1.86   0.063    -135.1012    5054.135
                |
          mx_id |
             2  |  -10486.67   942.4716   -11.13   0.000    -12339.09   -8634.261
             3  |     -13405   3215.509    -4.17   0.000    -19725.03   -7084.966
             4  |  -13366.86   3375.425    -3.96   0.000     -20001.2   -6732.514
             5  |  -9637.218   2514.926    -3.83   0.000    -14580.26   -4694.172
             6  |  -11979.99   3274.852    -3.66   0.000    -18416.66   -5543.322
             7  |  -11381.65   2044.113    -5.57   0.000    -15399.32   -7363.982
             8  |  -7043.175   2045.082    -3.44   0.001    -11062.75     -3023.6
             9  |  -8168.635   788.8583   -10.36   0.000    -9719.123   -6618.147
            10  |  -83.79627   1165.739    -0.07   0.943    -2375.037    2207.444
            11  |  -6213.532   911.3299    -6.82   0.000    -8004.735   -4422.328
            12  |   6248.554   1894.368     3.30   0.001     2525.206    9971.902
            13  |  -7258.867   2039.225    -3.56   0.000    -11266.93   -3250.805
            14  |  -6775.103   1455.303    -4.66   0.000    -9635.476   -3914.729
            15  |      -3917   673.3212    -5.82   0.000    -5240.402   -2593.599
            16  |  -1519.052   1432.738    -1.06   0.290    -4335.076    1296.971
            17  |  -2798.121   735.4159    -3.80   0.000    -4243.568   -1352.673
            18  |  -1947.064   1058.939    -1.84   0.067    -4028.392    134.2638
            19  |  -6645.491    802.761    -8.28   0.000    -8223.305   -5067.678
            20  |  -5328.359   1471.864    -3.62   0.000    -8221.283   -2435.435
            21  |  -8964.147   1885.156    -4.76   0.000    -12669.39   -5258.904
            22  |   1621.074   1062.492     1.53   0.128    -467.2359    3709.384
            23  |   -12567.2   3564.664    -3.53   0.000    -19573.49   -5560.914
            24  |   1489.949   1809.918     0.82   0.411    -2067.415    5047.313
            25  |  -8020.586   858.7894    -9.34   0.000    -9708.523    -6332.65
            26  |  -6585.452   1278.337    -5.15   0.000    -9098.002   -4072.901
            27  |   -12099.8   3217.876    -3.76   0.000    -18424.48   -5775.116
            28  |  -6086.218   657.9017    -9.25   0.000    -7379.312   -4793.123
            29  |  -9633.654   1841.884    -5.23   0.000    -13253.85   -6013.462
            30  |  -6622.536   1804.448    -3.67   0.000    -10169.15   -3075.923
            31  |  -10743.45   1241.239    -8.66   0.000    -13183.09   -8303.819
            32  |   246.3765   1097.115     0.22   0.822    -1909.985    2402.738
                |
          _cons |   12851.12   5067.647     2.54   0.012     2890.741    22811.49
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   431) =    25.35
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   431)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   431)
dpt_tot_prop |      25.35    0.0000 |       28.23   0.0000 |       25.35

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=21.84    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      38.01
Kleibergen-Paap Wald rk F statistic                                25.35

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,431)=       9.59     P-val=0.0021
Anderson-Rubin Wald test           Chi-sq(1)=     10.68     P-val=0.0011
Stock-Wright LM S statistic        Chi-sq(1)=     12.12     P-val=0.0005

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         49
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         49
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 48,   431) =    24.16
                                                      Prob > F      =   0.0000
Total (centered) SS     =  440.2499996                Centered R2   =   0.6106
Total (uncentered) SS   =  441.3760473                Uncentered R2 =   0.6116
Residual SS             =  171.4358956                Root MSE      =    .5976

---------------------------------------------------------------------------------
                |               Robust
       ann_z_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0001128   .0000413     2.73   0.006     .0000319    .0001937
  active_exp_w1 |  -.0618236   .0457914    -1.35   0.177    -.1515731    .0279259
cons_exp_raw_w1 |  -2.278609   .5469361    -4.17   0.000    -3.350584   -1.206634
                |
             yr |
          2004  |   .8840684   .1357015     6.51   0.000     .6180984    1.150038
          2005  |   1.703959   .1329191    12.82   0.000     1.443442    1.964475
          2006  |   2.484443   .1624157    15.30   0.000     2.166114    2.802772
          2007  |   2.443242   .1879731    13.00   0.000     2.074821    2.811662
          2008  |   1.351442    .261493     5.17   0.000     .8389252    1.863959
          2009  |   .4120086   .2793982     1.47   0.140    -.1356018    .9596189
          2010  |   .5335984   .2558994     2.09   0.037     .0320448    1.035152
          2011  |   .7751306   .3041189     2.55   0.011     .1790686    1.371193
          2012  |   .8609761   .2960847     2.91   0.004     .2806607    1.441291
          2013  |   1.116277   .2601928     4.29   0.000     .6063083    1.626245
          2014  |   1.633478    .230315     7.09   0.000     1.182069    2.084887
          2015  |   2.015215    .217948     9.25   0.000     1.588045    2.442385
          2016  |    2.18471   .2228091     9.81   0.000     1.748012    2.621408
          2017  |   2.982047   .2519709    11.83   0.000     2.488194    3.475901
                |
          mx_id |
             2  |   .5766751   .5383307     1.07   0.284    -.4784338    1.631784
             3  |  -2.177805   .9659192    -2.25   0.024    -4.070972    -.284638
             4  |   -2.45864   .9768632    -2.52   0.012    -4.373257   -.5440234
             5  |  -1.848122   .7807718    -2.37   0.018    -3.378407   -.3178374
             6  |  -2.483228   .9410068    -2.64   0.008    -4.327567   -.6388881
             7  |  -.9873783   .6888138    -1.43   0.152    -2.337429     .362672
             8  |  -1.506533   .6039757    -2.49   0.013    -2.690304   -.3227626
             9  |   1.333897   .4285745     3.11   0.002     .4939062    2.173888
            10  |  -.9537457   .3369543    -2.83   0.005    -1.614164   -.2933274
            11  |  -.1748829   .3903686    -0.45   0.654    -.9399912    .5902254
            12  |   .3992645    .444463     0.90   0.369     -.471867    1.270396
            13  |  -1.497374   .6114759    -2.45   0.014    -2.695845    -.298903
            14  |  -.8590911   .5023747    -1.71   0.087    -1.843727    .1255454
            15  |   .5691353   .2735438     2.08   0.037     .0329993    1.105271
            16  |   1.337604   .3797952     3.52   0.000     .5932193    2.081989
            17  |  -.0456702   .2394436    -0.19   0.849     -.514971    .4236305
            18  |   .9190974   .2833855     3.24   0.001      .363672    1.474523
            19  |   .1368607    .380717     0.36   0.719    -.6093309    .8830524
            20  |  -.9989494   .4603936    -2.17   0.030    -1.901304   -.0965944
            21  |  -1.082824   .6238573    -1.74   0.083    -2.305562    .1399139
            22  |  -.3115554   .2603803    -1.20   0.231    -.8218914    .1987806
            23  |  -2.814226   1.021062    -2.76   0.006    -4.815471   -.8129814
            24  |   1.461126   .4582913     3.19   0.001     .5628916     2.35936
            25  |   1.240831   .4174336     2.97   0.003     .4226758    2.058985
            26  |  -.2785335   .4146691    -0.67   0.502     -1.09127    .5342031
            27  |  -2.478935   .9388085    -2.64   0.008    -4.318966   -.6389046
            28  |   .3325616   .3555045     0.94   0.350    -.3642143    1.029338
            29  |  -.9528825    .644108    -1.48   0.139    -2.215311     .309546
            30  |  -1.317413   .5975204    -2.20   0.027    -2.488531   -.1462947
            31  |   .0506656   .5578173     0.09   0.928    -1.042636    1.143967
            32  |  -.8278024   .3085813    -2.68   0.007    -1.432611   -.2229941
                |
          _cons |   3.064783   1.432431     2.14   0.032     .2572708    5.872296
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             21.839
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               38.006
                         (Kleibergen-Paap rk Wald F statistic):         25.349
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 2.mx_id 3.mx_id 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id
                      12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id
                      24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id
                      30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 ann_z_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 pop ann_pr_
> mx avg_tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      54  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    480
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   897.8876   175.4092     5.12   0.000      553.117    1242.658
  active_exp_w1 |  -2630.396   599.2632    -4.39   0.000    -3808.261   -1452.531
cons_exp_raw_w1 |  -1249.622   1942.809    -0.64   0.520    -5068.257    2569.012
            pop |   934.1738   471.2511     1.98   0.048      7.91943    1860.428
      ann_pr_mx |   .7493387   .4781925     1.57   0.118    -.1905593    1.689237
     avg_tmp_mx |  -478.0456   232.8169    -2.05   0.041    -935.6524   -20.43891
                |
             yr |
          2004  |    409.738    599.175     0.68   0.494    -767.9536     1587.43
          2005  |   485.1454   621.6325     0.78   0.436    -736.6871    1706.978
          2006  |   1140.149   601.6516     1.90   0.059    -42.41056    2322.709
          2007  |   2807.854   540.6702     5.19   0.000     1745.155    3870.553
          2008  |   4782.481   646.9423     7.39   0.000     3510.901     6054.06
          2009  |   6417.325   763.1616     8.41   0.000     4917.314    7917.336
          2010  |   7814.157   905.3007     8.63   0.000     6034.769    9593.546
          2011  |   10254.67   1175.835     8.72   0.000     7943.545     12565.8
          2012  |   10225.03    1252.87     8.16   0.000     7762.484    12687.57
          2013  |   8172.214   1185.502     6.89   0.000     5842.084    10502.34
          2014  |   6187.427       1168     5.30   0.000     3891.697    8483.157
          2015  |   5345.723   1177.785     4.54   0.000     3030.762    7660.685
          2016  |   5901.291    1191.54     4.95   0.000     3559.293    8243.288
          2017  |  -2005.072    3063.71    -0.65   0.513    -8026.861    4016.718
                |
          mx_id |
             2  |  -12070.13   1347.929    -8.95   0.000    -14719.51   -9420.746
             3  |  -10027.69   3438.234    -2.92   0.004    -16785.62   -3269.766
             4  |  -9383.751   3856.816    -2.43   0.015    -16964.41   -1803.095
             5  |   -10675.2   3454.157    -3.09   0.002    -17464.43    -3885.98
             6  |  -14163.72   3642.622    -3.89   0.000    -21323.37   -7004.067
             7  |   -21266.4   4913.871    -4.33   0.000    -30924.73   -11608.08
             8  |  -6929.277    2334.72    -2.97   0.003    -11518.22   -2340.334
             9  |  -4250.078   2050.373    -2.07   0.039    -8280.132   -220.0242
            10  |  -629.4395   1195.707    -0.53   0.599    -2979.628    1720.749
            11  |  -20546.97   6858.089    -3.00   0.003    -34026.69   -7067.244
            12  |   2285.739   2694.609     0.85   0.397    -3010.576    7582.053
            13  |  -6441.561   2700.838    -2.39   0.018    -11750.12   -1133.004
            14  |  -8899.704   1767.508    -5.04   0.000    -12373.78   -5425.627
            15  |  -8679.274   2846.778    -3.05   0.002    -14274.68   -3083.869
            16  |  -2950.956   2016.096    -1.46   0.144    -6913.636    1011.725
            17  |  -1692.981   1214.428    -1.39   0.164    -4079.966    694.0049
            18  |  -561.3385   1401.703    -0.40   0.689    -3316.417     2193.74
            19  |  -8270.434   1950.744    -4.24   0.000    -12104.67   -4436.202
            20  |  -6302.878   2140.752    -2.94   0.003    -10510.57   -2095.182
            21  |  -12842.88   3053.467    -4.21   0.000    -18844.54   -6841.222
            22  |   -78.9459   1197.975    -0.07   0.947    -2433.593    2275.701
            23  |  -8921.397   4064.755    -2.19   0.029    -16910.76   -932.0314
            24  |   753.3447   1858.757     0.41   0.685    -2900.083    4406.772
            25  |  -6772.524   1660.523    -4.08   0.000    -10036.32    -3508.73
            26  |  -5982.448   1669.708    -3.58   0.000    -9264.295   -2700.601
            27  |  -9700.379    3831.37    -2.53   0.012    -17231.02   -2169.737
            28  |  -5919.047   1511.479    -3.92   0.000    -8889.893   -2948.202
            29  |  -10476.67   1910.728    -5.48   0.000    -14232.24   -6721.087
            30  |   -10400.7   3815.722    -2.73   0.007    -17900.58   -2900.814
            31  |  -7697.432   2356.867    -3.27   0.001    -12329.91   -3064.957
            32  |  -265.1422   1105.743    -0.24   0.811    -2438.505    1908.221
                |
          _cons |   19154.08   6353.025     3.01   0.003     6667.069    31641.09
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   428) =    26.20
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   428)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   428)
dpt_tot_prop |      26.20    0.0000 |       29.39   0.0000 |       26.20

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=22.32    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.53
Kleibergen-Paap Wald rk F statistic                                26.20

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,428)=       8.68     P-val=0.0034
Anderson-Rubin Wald test           Chi-sq(1)=      9.73     P-val=0.0018
Stock-Wright LM S statistic        Chi-sq(1)=     11.47     P-val=0.0007

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        480
Number of regressors                 K  =         52
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         52
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      480
                                                      F( 51,   428) =    25.85
                                                      Prob > F      =   0.0000
Total (centered) SS     =  440.2499996                Centered R2   =   0.6344
Total (uncentered) SS   =  441.3760473                Uncentered R2 =   0.6353
Residual SS             =  160.9484152                Root MSE      =    .5791

---------------------------------------------------------------------------------
                |               Robust
       ann_z_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |    .000105   .0000395     2.66   0.008     .0000276    .0001824
  active_exp_w1 |  -.0436425   .0447332    -0.98   0.329    -.1313179    .0440328
cons_exp_raw_w1 |  -2.135849   .5425309    -3.94   0.000     -3.19919   -1.072509
            pop |  -.6667411   .1645058    -4.05   0.000    -.9891665   -.3443157
      ann_pr_mx |   .0001932   .0001369     1.41   0.158    -.0000752    .0004615
     avg_tmp_mx |   .0135217   .0630226     0.21   0.830    -.1100002    .1370437
                |
             yr |
          2004  |   .9538527   .1355494     7.04   0.000     .6881809    1.219525
          2005  |   1.825943   .1400747    13.04   0.000     1.551401    2.100484
          2006  |   2.665536   .1720446    15.49   0.000     2.328335    3.002738
          2007  |   2.676668    .197983    13.52   0.000     2.288628    3.064707
          2008  |    1.67114   .2685178     6.22   0.000     1.144854    2.197425
          2009  |   .7923111   .2979893     2.66   0.008     .2082627    1.376359
          2010  |   .8887005   .2590809     3.43   0.001     .3809113     1.39649
          2011  |   1.163961   .3152892     3.69   0.000     .5460058    1.781917
          2012  |   1.267509   .3067846     4.13   0.000     .6662222    1.868796
          2013  |   1.506824   .2667426     5.65   0.000     .9840181     2.02963
          2014  |   2.037438   .2424715     8.40   0.000     1.562202    2.512673
          2015  |   2.450355   .2372467    10.33   0.000      1.98536    2.915351
          2016  |   2.666944    .246221    10.83   0.000      2.18436    3.149528
          2017  |   3.728141    .781742     4.77   0.000     2.195955    5.260327
                |
          mx_id |
             2  |   1.907805   .6502139     2.93   0.003     .6334093    3.182201
             3  |  -2.397069   .9748182    -2.46   0.014    -4.307678   -.4864607
             4  |  -2.763433   1.054229    -2.62   0.009    -4.829685   -.6971819
             5  |   .3268593   1.011959     0.32   0.747    -1.656544    2.310263
             6  |  -.7854249   1.047954    -0.75   0.454    -2.839378    1.268528
             7  |    4.17983   1.671092     2.50   0.012     .9045505     7.45511
             8  |  -.3722846   .6674496    -0.56   0.577    -1.680462    .9358925
             9  |    .695452   .6082011     1.14   0.253    -.4966003    1.887504
            10  |  -.5975811   .3445472    -1.73   0.083    -1.272881    .0777189
            11  |   9.027921   2.452646     3.68   0.000     4.220824    13.83502
            12  |   3.165408   .7774965     4.07   0.000     1.641543    4.689274
            13  |  -.1236911   .7560601    -0.16   0.870    -1.605542     1.35816
            14  |   .1572243   .6111733     0.26   0.797    -1.040653    1.355102
            15  |   4.523008    1.01596     4.45   0.000     2.531763    6.514253
            16  |   3.211484   .6222178     5.16   0.000      1.99196    4.431009
            17  |   .2094583   .3340093     0.63   0.531    -.4451878    .8641044
            18  |   .6010088   .3696664     1.63   0.104     -.123524    1.325542
            19  |   2.423961    .695673     3.48   0.000     1.060467    3.787455
            20  |   .6028895   .6509664     0.93   0.354    -.6729811     1.87876
            21  |    1.92426   1.032349     1.86   0.062    -.0991063    3.947626
            22  |   .1224196   .3194254     0.38   0.702    -.5036426    .7484818
            23  |  -2.763086   1.106179    -2.50   0.012    -4.931157   -.5950157
            24  |   2.236097   .5011394     4.46   0.000     1.253881    3.218312
            25  |   2.083655    .536726     3.88   0.000     1.031692    3.135619
            26  |   .6765275   .4893756     1.38   0.167    -.2826311    1.635686
            27  |  -2.014089   1.044782    -1.93   0.054    -4.061823    .0336463
            28  |   1.566646   .5240294     2.99   0.003     .5395677    2.593725
            29  |  -.9576504    .663215    -1.44   0.149    -2.257528    .3422271
            30  |   2.701957   1.215803     2.22   0.026     .3190267    5.084888
            31  |   .3399895   .6978808     0.49   0.626    -1.027832    1.707811
            32  |  -.5634643   .3124135    -1.80   0.071    -1.175784     .048855
                |
          _cons |   2.888063    1.80913     1.60   0.110    -.6577662    6.433892
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             22.324
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.529
                         (Kleibergen-Paap rk Wald F statistic):         26.202
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id
                      9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id 14.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 20.mx_id
                      21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id 26.mx_id
                      27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Next, move final eight lines of first table to end of second t
> able. Delete \midrule between the the tables. Penultimately, consolidate notes by moving all of them f
> rom \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which should sit between \end{t
> abular} and \end{threeparttable}. Set notes in \scriptsize. Last, put separate terms in Kleibergen-Paa
> p F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_ann_z.tex", replace refcat(dpt_tot_prop "\emph{Second Stage
> }", nolabel) b(5) se(5) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{
> 0.5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop
>  "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{
> 0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2}" "\
> textit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 
> 0) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deport
> ations on Mexican States' \newline Annual \textit{Z} Score) rename(dpt_tot_prop_w1 dpt_tot_prop active
> _exp_w1 active_exp cons_exp_raw_w1 cons_exp_raw) stats(N F Fp widstat, fmt(0 3 3 3) label(Observations
>  \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust standard errors in pa
> rentheses. All models contain state and year fixed effects.") collabels(none) noobs booktabs
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ann_z.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ann_z.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_a
> nn_z.tex", append refcat(sc_cons_raw "\emph{First Stage}", nolabel) b(5) se(5) drop(*yr *mx_id) star(*
>  0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_raw "\hspace{0.5cm} Policy $\times$ Partisanship" ac
> tive_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "\hspace{0.5cm} Popula
> tion (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} Temperature (ºC)
> " _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_raw_w1 sc_cons_raw active_exp_w1 active_exp
>  cons_exp_raw_w1 cons_exp_raw) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ann_z.tex)

. 
. 
. 
. /***** Test for documentation of remitters by analyzing the similarity of destination choice among Mex
> ican states' documented and undocumented migrants *****/
. /*** Instrumental variable regression for sample of Mexican states with more dissimilar enclave locati
> ons ***/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. tsset mx_id yr

Panel variable: mx_id (strongly balanced)
 Time variable: yr, 2003 to 2017
         Delta: 1 unit

. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw ib(first).yr ib(first).mx_id
>  if qdest==1, robust first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      35  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    240
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   1146.729   313.7213     3.66   0.000     528.2304    1765.228
  active_exp |   -2683.97   904.1263    -2.97   0.003    -4466.446   -901.4936
cons_exp_raw |  -11011.58   4378.056    -2.52   0.013    -19642.88   -2380.289
             |
          yr |
       2004  |   1299.297   671.1086     1.94   0.054    -23.78669    2622.381
       2005  |   1123.896    678.948     1.66   0.099    -214.6437    2462.435
       2006  |   1737.092   632.2346     2.75   0.007     490.6478    2983.537
       2007  |   3311.939   603.8964     5.48   0.000     2121.363    4502.515
       2008  |   3519.167   701.0718     5.02   0.000     2137.011    4901.323
       2009  |   4758.742   775.3667     6.14   0.000     3230.114     6287.37
       2010  |   6064.174   1054.027     5.75   0.000     3986.169    8142.179
       2011  |   7932.622   1454.639     5.45   0.000     5064.815    10800.43
       2012  |   8330.752   1550.693     5.37   0.000     5273.575    11387.93
       2013  |   6696.407   1480.861     4.52   0.000     3776.904    9615.911
       2014  |   5050.623   1441.692     3.50   0.001     2208.341    7892.904
       2015  |    4116.51    1454.22     2.83   0.005     1249.529    6983.492
       2016  |   3547.402   1578.003     2.25   0.026     436.3844     6658.42
       2017  |   385.1804   1882.422     0.20   0.838    -3325.996    4096.356
             |
       mx_id |
          4  |  -26930.27   7459.928    -3.61   0.000    -41637.45    -12223.1
          5  |  -19699.82   5578.919    -3.53   0.001     -30698.6   -8701.029
          6  |  -25277.79   7235.571    -3.49   0.001    -39542.65   -11012.93
          7  |  -19260.19   4447.303    -4.33   0.000    -28028.01   -10492.38
         10  |  -3408.915   2109.327    -1.62   0.108    -7567.433    749.6021
         11  |  -9075.923   1892.705    -4.80   0.000    -12807.37   -5344.473
         13  |  -15295.86   4534.943    -3.37   0.001    -24236.46   -6355.267
         14  |  -12190.39   3202.263    -3.81   0.000    -18503.62    -5877.16
         20  |  -10953.52   3259.408    -3.36   0.001    -17379.41   -4527.626
         22  |   1218.342   1043.081     1.17   0.244    -838.0814    3274.766
         23  |  -27282.61   7915.078    -3.45   0.001    -42887.11   -11678.11
         27  |     -25299    7172.47    -3.53   0.001    -39439.45   -11158.54
         29  |  -16612.85   4001.369    -4.15   0.000    -24501.51   -8724.188
         30  |  -13464.03   3962.672    -3.40   0.001     -21276.4   -5651.661
         32  |  -2495.307    1854.68    -1.35   0.180     -6151.79    1161.177
             |
       _cons |   35804.36   11403.76     3.14   0.002     13321.97    58286.76
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   207) =    13.36
  Prob > F      =   0.0003
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   207) =    13.36
  Prob > F      =   0.0003



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   207)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   207)
dpt_tot_prop |      13.36    0.0003 |       15.49   0.0001 |       13.36

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.26    P-val=0.0005

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      14.92
Kleibergen-Paap Wald rk F statistic                                13.36

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,207)=       6.23     P-val=0.0134
Anderson-Rubin Wald test           Chi-sq(1)=      7.22     P-val=0.0072
Stock-Wright LM S statistic        Chi-sq(1)=      9.74     P-val=0.0018

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         33
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         33
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 32,   207) =   118.91
                                                      Prob > F      =   0.0000
Total (centered) SS     =  59343878.29                Centered R2   =   0.9276
Total (uncentered) SS   =  163022478.4                Uncentered R2 =   0.9737
Residual SS             =  4295545.813                Root MSE      =    133.8

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0375153    .016452     2.28   0.023     .0052699    .0697607
  active_exp |  -44.71062   16.70523    -2.68   0.007    -77.45227   -11.96896
cons_exp_raw |   311.0093      370.3     0.84   0.401    -414.7654    1036.784
             |
          yr |
       2004  |   59.34917   58.82389     1.01   0.313    -55.94353    174.6419
       2005  |    182.679   56.62043     3.23   0.001     71.70497     293.653
       2006  |   297.5918   67.98114     4.38   0.000     164.3512    430.8324
       2007  |   243.0073   84.03721     2.89   0.004     78.29738    407.7172
       2008  |   177.7619   79.67856     2.23   0.026     21.59476     333.929
       2009  |   19.62639   87.05286     0.23   0.822    -150.9941    190.2469
       2010  |   73.73407   77.41432     0.95   0.341    -77.99521    225.4634
       2011  |   108.8573   91.95563     1.18   0.236    -71.37246     289.087
       2012  |   97.74567   92.95947     1.05   0.293    -84.45154    279.9429
       2013  |   154.0781   80.60467     1.91   0.056    -3.904123    312.0604
       2014  |   245.8206   69.17255     3.55   0.000     110.2449    381.3963
       2015  |   297.4102   60.27086     4.93   0.000     179.2815    415.5389
       2016  |   391.2051   71.36405     5.48   0.000     251.3341    531.0761
       2017  |   159.5414   95.41402     1.67   0.095    -27.46662    346.5495
             |
       mx_id |
          4  |   566.0049   711.0226     0.80   0.426    -827.5738    1959.584
          5  |   936.0258   538.8964     1.74   0.082    -120.1918    1992.243
          6  |   912.2204   684.3816     1.33   0.183    -429.1429    2253.584
          7  |    1461.62   474.3089     3.08   0.002     531.9917    2391.248
         10  |   200.3758   161.5109     1.24   0.215    -116.1798    516.9314
         11  |   1608.313   209.8871     7.66   0.000     1196.941    2019.684
         13  |   1389.039   430.7257     3.22   0.001     544.8322    2233.246
         14  |   845.7727   321.1158     2.63   0.008     216.3973    1475.148
         20  |   1283.346   316.6366     4.05   0.000     662.7493    1903.942
         22  |   27.61928   57.84657     0.48   0.633    -85.75792    140.9965
         23  |   599.6491   744.1983     0.81   0.420    -858.9528    2058.251
         27  |   591.0837   684.0858     0.86   0.388    -749.6999    1931.867
         29  |   477.3531   419.9107     1.14   0.256    -345.6568    1300.363
         30  |   1345.124   381.6661     3.52   0.000     597.0719    2093.175
         32  |   372.6555   137.5721     2.71   0.007     103.0191    642.2918
             |
       _cons |  -966.7514   1037.418    -0.93   0.351    -3000.053    1066.551
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.257
                                                   Chi-sq(1) P-val =    0.0005
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               14.924
                         (Kleibergen-Paap rk Wald F statistic):         13.361
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 4.mx_id 5.mx_id 6.mx_id 7.mx_id
                      10.mx_id 11.mx_id 13.mx_id 14.mx_id 20.mx_id 22.mx_id
                      23.mx_id 27.mx_id 29.mx_id 30.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(
> first).yr ib(first).mx_id if qdest==1, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      38  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    240
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |    1018.72   311.7057     3.27   0.001     404.1419    1633.298
  active_exp |  -2302.811   901.6368    -2.55   0.011    -4080.533   -525.0894
cons_exp_raw |  -12846.08   3984.381    -3.22   0.001    -20701.93   -4990.232
         pop |  -807.7642   413.9435    -1.95   0.052     -1623.92    8.392012
   ann_pr_mx |    .767084   .5453441     1.41   0.161    -.3081496    1.842318
  avg_tmp_mx |  -502.6286   317.0229    -1.59   0.114     -1127.69    122.4329
             |
          yr |
       2004  |   1615.364   708.9941     2.28   0.024     217.4684     3013.26
       2005  |    1851.96   751.7298     2.46   0.015      369.804    3334.116
       2006  |   2479.037   753.3728     3.29   0.001     993.6412    3964.432
       2007  |   4149.898   759.2345     5.47   0.000     2652.945    5646.851
       2008  |   3896.028   816.1756     4.77   0.000     2286.806     5505.25
       2009  |   5466.081   940.7985     5.81   0.000     3611.145    7321.017
       2010  |   6107.643   1137.754     5.37   0.000     3864.378    8350.908
       2011  |    8281.09   1499.604     5.52   0.000     5324.381     11237.8
       2012  |   8618.189   1633.581     5.28   0.000      5397.32    11839.06
       2013  |   6842.648   1541.769     4.44   0.000     3802.802    9882.495
       2014  |    5196.13   1517.189     3.42   0.001     2204.748    8187.512
       2015  |   4497.886   1544.886     2.91   0.004     1451.895    7543.877
       2016  |   3783.341   1638.415     2.31   0.022     552.9419    7013.741
       2017  |  -3811.557    4324.55    -0.88   0.379     -12338.1     4714.99
             |
       mx_id |
          4  |  -26752.98   7396.557    -3.62   0.000    -41336.48   -12169.48
          5  |  -17009.63    5375.31    -3.16   0.002    -27607.92   -6411.341
          6  |  -26931.09    6628.95    -4.06   0.000    -40001.13   -13861.05
          7  |  -18009.43   5529.718    -3.26   0.001    -28912.16   -7106.705
         10  |  -4115.151    1950.03    -2.11   0.036     -7959.95    -270.352
         11  |  -51.28401   5922.053    -0.01   0.993    -11727.56       11625
         13  |  -12745.83   4478.461    -2.85   0.005    -21575.84   -3915.825
         14  |  -13303.41   2984.945    -4.46   0.000    -19188.71   -7418.107
         20  |  -8903.126   3149.958    -2.83   0.005    -15113.77   -2692.478
         22  |   509.4474   1271.098     0.40   0.689    -1996.727    3015.622
         23  |  -26774.62   7794.078    -3.44   0.001    -42141.89   -11407.34
         27  |  -24276.81   7091.626    -3.42   0.001    -38259.09   -10294.53
         29  |  -19415.83   3732.184    -5.20   0.000    -26774.43   -12057.23
         30  |  -7864.401   4255.265    -1.85   0.066    -16254.34    525.5394
         32  |  -3278.698   1761.547    -1.86   0.064    -6751.871    194.4747
             |
       _cons |   49377.21   11582.14     4.26   0.000     26541.16    72213.25
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   204) =    10.68
  Prob > F      =   0.0013
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   204) =    10.68
  Prob > F      =   0.0013



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   204)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   204)
dpt_tot_prop |      10.68    0.0013 |       12.57   0.0004 |       10.68

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.43    P-val=0.0012

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      11.97
Kleibergen-Paap Wald rk F statistic                                10.68

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,204)=       4.31     P-val=0.0390
Anderson-Rubin Wald test           Chi-sq(1)=      5.08     P-val=0.0243
Stock-Wright LM S statistic        Chi-sq(1)=      7.70     P-val=0.0055

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         36
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         36
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 35,   204) =   109.01
                                                      Prob > F      =   0.0000
Total (centered) SS     =  59343878.29                Centered R2   =   0.9323
Total (uncentered) SS   =  163022478.4                Uncentered R2 =   0.9754
Residual SS             =  4014789.579                Root MSE      =    129.3

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0360706   .0191067     1.89   0.059    -.0013778    .0735191
  active_exp |  -35.99048   16.87307    -2.13   0.033    -69.06108    -2.91988
cons_exp_raw |   277.3216   400.3541     0.69   0.489    -507.3581    1062.001
         pop |  -156.4693   88.02125    -1.78   0.075    -328.9878    16.04914
   ann_pr_mx |  -.0005184   .0504779    -0.01   0.992    -.0994532    .0984165
  avg_tmp_mx |   9.694724   27.30675     0.36   0.723    -43.82553    63.21498
             |
          yr |
       2004  |   72.24458   66.48064     1.09   0.277    -58.05509    202.5442
       2005  |   196.0313   68.02163     2.88   0.004     62.71139    329.3513
       2006  |   322.9784   79.41248     4.07   0.000     167.3328     478.624
       2007  |   279.3377   102.6514     2.72   0.007     78.14469    480.5308
       2008  |   221.8048   91.71126     2.42   0.016     42.05402    401.5556
       2009  |   66.54064   113.4981     0.59   0.558    -155.9115    288.9928
       2010  |   122.0962   89.18372     1.37   0.171    -52.70072     296.893
       2011  |   151.1058   117.0402     1.29   0.197    -78.28875    380.5004
       2012  |   146.1138   116.6361     1.25   0.210    -82.48872    374.7163
       2013  |   205.4633   94.22558     2.18   0.029      20.7846    390.1421
       2014  |   302.2729   80.82899     3.74   0.000      143.851    460.6948
       2015  |   356.3609   72.92017     4.89   0.000       213.44    499.2819
       2016  |   452.7616   78.47532     5.77   0.000     298.9528    606.5704
       2017  |   318.7931   328.6659     0.97   0.332    -325.3803    962.9665
             |
       mx_id |
          4  |   381.1843   731.0343     0.52   0.602    -1051.617    1813.985
          5  |   1394.938   548.0773     2.55   0.011     320.7261     2469.15
          6  |   1221.729   744.5472     1.64   0.101    -237.5565    2681.015
          7  |   2678.393   786.3712     3.41   0.001     1137.133    4219.652
         10  |   264.8843    166.814     1.59   0.112    -62.06521    591.8337
         11  |   3788.265   1202.245     3.15   0.002     1431.908    6144.623
         13  |   1634.098   414.8583     3.94   0.000     820.9909    2447.205
         14  |   1065.388   370.9494     2.87   0.004     338.3401    1792.435
         20  |    1627.13    334.445     4.87   0.000     971.6301     2282.63
         22  |   150.7518   91.44273     1.65   0.099    -28.47262    329.9763
         23  |   491.8018   747.6779     0.66   0.511      -973.62    1957.224
         27  |   617.4478   672.8779     0.92   0.359    -701.3686    1936.264
         29  |   457.2732   505.4388     0.90   0.366    -533.3686    1447.915
         30  |   2255.964   583.1391     3.87   0.000     1113.032    3398.896
         32  |    418.354   143.3878     2.92   0.004     137.3191     699.389
             |
       _cons |  -918.3174   1458.404    -0.63   0.529    -3776.737    1940.102
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             10.427
                                                   Chi-sq(1) P-val =    0.0012
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               11.967
                         (Kleibergen-Paap rk Wald F statistic):         10.681
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 4.mx_id
                      5.mx_id 6.mx_id 7.mx_id 10.mx_id 11.mx_id 13.mx_id
                      14.mx_id 20.mx_id 22.mx_id 23.mx_id 27.mx_id 29.mx_id
                      30.mx_id 32.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 ib(first).yr 
> ib(first).mx_id if qdest==1, robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      35  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    240
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   1161.347   313.8576     3.70   0.000     542.5797    1780.114
  active_exp_w1 |  -2701.741    906.429    -2.98   0.003    -4488.757   -914.7244
cons_exp_raw_w1 |  -10171.26   4388.064    -2.32   0.021    -18822.29   -1520.238
                |
             yr |
          2004  |   1220.194   673.1562     1.81   0.071    -106.9271    2547.315
          2005  |   1044.792   681.1346     1.53   0.127    -298.0583    2387.643
          2006  |   1657.989   633.7491     2.62   0.010     408.5584    2907.419
          2007  |   3232.835   603.2635     5.36   0.000     2043.507    4422.163
          2008  |   3604.054   704.0083     5.12   0.000     2216.108    4991.999
          2009  |   4841.088   778.2905     6.22   0.000     3306.696     6375.48
          2010  |   6133.425   1053.064     5.82   0.000      4057.32    8209.531
          2011  |   7994.789   1455.431     5.49   0.000     5125.422    10864.16
          2012  |   8355.031   1552.401     5.38   0.000     5294.487    11415.57
          2013  |    6718.93   1484.303     4.53   0.000      3792.64     9645.22
          2014  |   5073.145   1445.726     3.51   0.001      2222.91     7923.38
          2015  |   4139.033   1458.659     2.84   0.005     1263.301    7014.765
          2016  |   3671.045   1574.168     2.33   0.021     567.5876    6774.502
          2017  |   508.8229    1884.39     0.27   0.787    -3206.235    4223.881
                |
          mx_id |
             4  |  -25560.86     7468.8    -3.42   0.001    -40285.53   -10836.19
             5  |  -18665.37   5590.001    -3.34   0.001       -29686   -7644.738
             6  |  -23933.35   7250.819    -3.30   0.001    -38228.27    -9638.43
             7  |  -18442.73   4455.031    -4.14   0.000    -27225.78   -9659.679
            10  |  -3048.931   2112.171    -1.44   0.150    -7213.056    1115.194
            11  |  -8767.775   1892.949    -4.63   0.000    -12499.71   -5035.844
            13  |  -14459.53     4544.1    -3.18   0.002    -23418.18   -5500.884
            14  |  -11615.01   3207.941    -3.62   0.000    -17939.44   -5290.591
            20  |  -10364.16   3264.434    -3.17   0.002    -16799.96    -3928.36
            22  |   1264.573   1041.629     1.21   0.226    -788.9884    3318.134
            23  |  -25771.06   7941.074    -3.25   0.001    -41426.81   -10115.31
            27  |  -23964.57   7185.132    -3.34   0.001    -38129.99   -9799.148
            29  |  -15883.81   4006.108    -3.96   0.000    -23781.81   -7985.802
            30  |  -12741.96   3970.906    -3.21   0.002    -20570.56   -4913.356
            32  |  -2196.638   1856.918    -1.18   0.238    -5857.535    1464.259
                |
          _cons |      33649   11426.35     2.94   0.004     11122.06    56175.94
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   207) =    13.69
  Prob > F      =   0.0003
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   207) =    13.69
  Prob > F      =   0.0003



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   207)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   207)
dpt_tot_prop |      13.69    0.0003 |       15.87   0.0001 |       13.69

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=12.49    P-val=0.0004

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      15.30
Kleibergen-Paap Wald rk F statistic                                13.69

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,207)=       6.31     P-val=0.0128
Anderson-Rubin Wald test           Chi-sq(1)=      7.31     P-val=0.0068
Stock-Wright LM S statistic        Chi-sq(1)=      9.87     P-val=0.0017

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         33
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         33
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 32,   207) =   119.01
                                                      Prob > F      =   0.0000
Total (centered) SS     =  59343878.29                Centered R2   =   0.9279
Total (uncentered) SS   =  163022478.4                Uncentered R2 =   0.9737
Residual SS             =   4281648.95                Root MSE      =    133.6

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |    .037189   .0161584     2.30   0.021     .0055191     .068859
  active_exp_w1 |  -44.67127   16.81275    -2.66   0.008    -77.62366   -11.71888
cons_exp_raw_w1 |   296.2631   354.7073     0.84   0.404    -398.9504    991.4766
                |
             yr |
          2004  |   60.82302   57.81605     1.05   0.293    -52.49435    174.1404
          2005  |   184.0956   55.68513     3.31   0.001     74.95474    293.2364
          2006  |   299.2085   66.81375     4.48   0.000     168.2559     430.161
          2007  |   245.1378   82.22943     2.98   0.003     83.97111    406.3045
          2008  |   177.7711   80.01635     2.22   0.026     20.94197    334.6003
          2009  |   19.95244   87.22393     0.23   0.819    -151.0033    190.9082
          2010  |   74.07318   77.13012     0.96   0.337    -77.09907    225.2454
          2011  |   109.5609   91.13848     1.20   0.229    -69.06728     288.189
          2012  |   98.95001    91.5067     1.08   0.280    -80.39983    278.2998
          2013  |   154.7131   79.68456     1.94   0.052    -1.465779    310.8919
          2014  |   245.9186    68.7818     3.58   0.000     111.1087    380.7284
          2015  |   297.2034   60.09627     4.95   0.000     179.4168    414.9899
          2016  |   389.0272   70.50142     5.52   0.000      250.847    527.2075
          2017  |   156.3318   93.57335     1.67   0.095    -27.06863    339.7322
                |
          mx_id |
             4  |   539.2783   679.5578     0.79   0.427    -792.6305    1871.187
             5  |   915.8903    515.102     1.78   0.075    -93.69114    1925.472
             6  |   886.3141   654.1489     1.35   0.175    -395.7941    2168.422
             7  |    1444.43   453.4325     3.19   0.001     555.7188    2333.142
            10  |   194.4771   155.7093     1.25   0.212    -110.7076    499.6618
            11  |   1601.232   201.4886     7.95   0.000     1206.322    1996.143
            13  |   1372.932   411.8396     3.33   0.001     565.7413    2180.123
            14  |   834.1537   307.2359     2.72   0.007     231.9824    1436.325
            20  |    1271.87   303.1174     4.20   0.000     677.7705    1865.969
            22  |   27.42109   57.69309     0.48   0.635    -85.65528    140.4975
            23  |    570.117   710.1747     0.80   0.422    -821.7998    1962.034
            27  |   565.2889   653.8208     0.86   0.387    -716.1763    1846.754
            29  |   462.2154   401.5951     1.15   0.250    -324.8964    1249.327
            30  |    1331.19    365.325     3.64   0.000     615.1656    2047.214
            32  |   367.8782   133.0241     2.77   0.006     107.1558    628.6005
                |
          _cons |  -926.4538   991.7123    -0.93   0.350    -2870.174    1017.267
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             12.491
                                                   Chi-sq(1) P-val =    0.0004
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               15.298
                         (Kleibergen-Paap rk Wald F statistic):         13.692
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 4.mx_id 5.mx_id 6.mx_id
                      7.mx_id 10.mx_id 11.mx_id 13.mx_id 14.mx_id 20.mx_id
                      22.mx_id 23.mx_id 27.mx_id 29.mx_id 30.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx
>  avg_tmp_mx ib(first).yr ib(first).mx_id if qdest==1, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      38  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    240
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   1033.838   311.6893     3.32   0.001     419.2921    1648.383
  active_exp_w1 |  -2330.213   903.7557    -2.58   0.011    -4112.113   -548.3137
cons_exp_raw_w1 |  -12146.35   3945.989    -3.08   0.002     -19926.5   -4366.193
            pop |  -791.5076    413.616    -1.91   0.057    -1607.018    24.00283
      ann_pr_mx |   .7821073   .5437057     1.44   0.152     -.289896    1.854111
     avg_tmp_mx |  -507.0438   317.9755    -1.59   0.112    -1133.984    119.8961
                |
             yr |
          2004  |   1553.285   707.2131     2.20   0.029     158.9008     2947.67
          2005  |   1794.027   752.3925     2.38   0.018     310.5645     3277.49
          2006  |   2420.779   752.5113     3.22   0.002     937.0817    3904.476
          2007  |   4091.517   756.7557     5.41   0.000     2599.451    5583.583
          2008  |   3971.943   813.1946     4.88   0.000     2368.599    5575.287
          2009  |    5545.44    937.897     5.91   0.000     3696.225    7394.655
          2010  |   6181.692   1136.096     5.44   0.000     3941.697    8421.687
          2011  |   8360.183   1501.485     5.57   0.000     5399.763     11320.6
          2012  |   8666.799   1636.819     5.29   0.000     5439.547    11894.05
          2013  |   6887.653   1546.959     4.45   0.000     3837.576    9937.731
          2014  |   5240.309   1522.264     3.44   0.001     2238.921    8241.697
          2015  |   4543.878   1550.661     2.93   0.004     1486.501    7601.255
          2016  |   3921.532   1637.302     2.40   0.018     693.3279    7149.735
          2017  |  -3707.707   4325.417    -0.86   0.392    -12235.96    4820.549
                |
          mx_id |
             4  |  -25589.06   7301.898    -3.50   0.001    -39985.93   -11192.19
             5  |  -16200.75   5313.465    -3.05   0.003     -26677.1   -5724.401
             6  |  -25857.34   6583.668    -3.93   0.000     -38838.1   -12876.58
             7  |  -17485.61   5552.953    -3.15   0.002    -28434.15    -6537.07
            10  |  -3826.057   1938.256    -1.97   0.050    -7647.641   -4.473728
            11  |   -38.6563   5932.014    -0.01   0.995    -11734.58    11657.26
            13  |  -12065.18   4421.389    -2.73   0.007    -20782.66     -3347.7
            14  |  -12859.06   2975.517    -4.32   0.000    -18725.77   -6992.351
            20  |   -8448.11   3114.071    -2.71   0.007       -14588   -2308.219
            22  |   524.3704   1275.728     0.41   0.681    -1990.933    3039.673
            23  |  -25485.31   7696.159    -3.31   0.001    -40659.53    -10311.1
            27  |  -23171.34   7002.236    -3.31   0.001    -36977.38   -9365.309
            29  |  -18822.43   3710.234    -5.07   0.000    -26137.75   -11507.11
            30  |  -7360.367   4217.567    -1.75   0.082    -15675.98    955.2453
            32  |  -3038.432   1755.208    -1.73   0.085    -6499.107     422.243
                |
          _cons |   47631.97   11582.61     4.11   0.000        24795    70468.95
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   204) =    11.00
  Prob > F      =   0.0011
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   204) =    11.00
  Prob > F      =   0.0011



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   204)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   204)
dpt_tot_prop |      11.00    0.0011 |       12.94   0.0003 |       11.00

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.70    P-val=0.0011

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      12.32
Kleibergen-Paap Wald rk F statistic                                11.00

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,204)=       4.41     P-val=0.0370
Anderson-Rubin Wald test           Chi-sq(1)=      5.19     P-val=0.0228
Stock-Wright LM S statistic        Chi-sq(1)=      7.84     P-val=0.0051

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         36
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         36
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 35,   204) =   109.29
                                                      Prob > F      =   0.0000
Total (centered) SS     =  59343878.29                Centered R2   =   0.9325
Total (uncentered) SS   =  163022478.4                Uncentered R2 =   0.9754
Residual SS             =  4005027.886                Root MSE      =    129.2

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0358629     .01876     1.91   0.056     -.000906    .0726319
  active_exp_w1 |  -35.58646   16.84668    -2.11   0.035    -68.60535   -2.567568
cons_exp_raw_w1 |   275.8597   383.8417     0.72   0.472    -476.4562    1028.176
            pop |   -156.891   87.75895    -1.79   0.074    -328.8953    15.11342
      ann_pr_mx |  -.0005395   .0504597    -0.01   0.991    -.0994388    .0983597
     avg_tmp_mx |   9.862072   27.27072     0.36   0.718    -43.58757    63.31171
                |
             yr |
          2004  |   72.50989   65.67317     1.10   0.270    -56.20716    201.2269
          2005  |   196.1872   67.09829     2.92   0.003     64.67701    327.6975
          2006  |    323.322   78.12933     4.14   0.000     170.1913    476.4526
          2007  |   280.0266   100.6437     2.78   0.005     82.76867    477.2846
          2008  |   222.7428   91.70895     2.43   0.015     42.99653     402.489
          2009  |   67.49644   113.1982     0.60   0.551    -154.3679    289.3608
          2010  |   122.5794   88.78475     1.38   0.167    -51.43552    296.5943
          2011  |   151.3768   116.1184     1.30   0.192    -76.21101    378.9646
          2012  |   146.2892   115.1278     1.27   0.204    -79.35714    371.9356
          2013  |   205.2382   93.25313     2.20   0.028     22.46545     388.011
          2014  |   301.7393    80.3864     3.75   0.000     144.1849    459.2938
          2015  |   355.6038   72.62777     4.90   0.000     213.2559    497.9516
          2016  |   451.3205   78.08426     5.78   0.000     298.2782    604.3629
          2017  |   318.3574   326.6425     0.97   0.330    -321.8502     958.565
                |
          mx_id |
             4  |    375.885   698.5236     0.54   0.590     -993.196    1744.966
             5  |   1392.441    532.227     2.62   0.009     349.2956    2435.587
             6  |   1219.266   717.9179     1.70   0.089    -187.8276    2626.359
             7  |   2679.307   781.1251     3.43   0.001      1148.33    4210.284
            10  |   264.7911   161.3045     1.64   0.101    -51.35982    580.9421
            11  |    3792.89     1202.7     3.15   0.002     1435.641    6150.138
            13  |   1631.668   400.5585     4.07   0.000     846.5878    2416.748
            14  |   1064.345   359.7812     2.96   0.003      359.187    1769.503
            20  |   1625.828   326.8289     4.97   0.000     985.2551    2266.401
            22  |   151.6738   91.44415     1.66   0.097    -27.55347     330.901
            23  |   485.4985   713.2777     0.68   0.496       -912.5    1883.497
            27  |   612.8725   643.6852     0.95   0.341    -648.7273    1874.472
            29  |   454.7891   487.3884     0.93   0.351    -500.4745    1410.053
            30  |   2255.689    581.025     3.88   0.000     1116.901    3394.477
            32  |   418.3864    138.934     3.01   0.003     146.0807    690.6921
                |
          _cons |  -915.6489   1413.735    -0.65   0.517    -3686.519    1855.221
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             10.697
                                                   Chi-sq(1) P-val =    0.0011
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               12.320
                         (Kleibergen-Paap rk Wald F statistic):         11.002
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      4.mx_id 5.mx_id 6.mx_id 7.mx_id 10.mx_id 11.mx_id 13.mx_id
                      14.mx_id 20.mx_id 22.mx_id 23.mx_id 27.mx_id 29.mx_id
                      30.mx_id 32.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Next, move final eight lines of first table to end of second t
> able. Delete \midrule between the the tables. Penultimately, consolidate notes by moving all of them f
> rom \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which should sit between \end{t
> abular} and \end{threeparttable}. Set notes in \scriptsize. Last, put separate terms in Kleibergen-Paa
> p F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_ft1.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}"
> , nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0.
> 5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "
> \hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.
> 5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2}" "\te
> xtit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0)
>  prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deportat
> ions on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 dpt_tot_
> prop active_exp_w1 active_exp cons_exp_raw_w1 cons_exp_raw) stats(N F Fp widstat, fmt(0 3 3 3) label(O
> bservations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust standard e
> rrors in parentheses. All models contain state and year fixed effects.") collabels(none) noobs booktab
> s
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ft1.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ft1.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_f
> t1.tex", append refcat(sc_cons_raw "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0
> .1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_raw "\hspace{0.5cm} Policy $\times$ Partisanship" acti
> ve_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "\hspace{0.5cm} Populati
> on (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} Temperature (ºC)" 
> _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_raw_w1 sc_cons_raw active_exp_w1 active_exp c
> ons_exp_raw_w1 cons_exp_raw) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ft1.tex)

. 
. /*** Instrumental variable regression for sample of Mexican states with highly similar enclave locatio
> ns ***/
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw ib(first).yr ib(first).mx_id
>  if qdest==2, robust first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      35  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    240
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   1284.626   251.2318     5.11   0.000     789.3252    1779.927
  active_exp |  -4444.591   972.8796    -4.57   0.000    -6362.614   -2526.568
cons_exp_raw |  -3789.194   3062.851    -1.24   0.217    -9827.576    2249.187
             |
          yr |
       2004  |   768.5788   871.6037     0.88   0.379    -949.7795    2486.937
       2005  |   451.4805   878.6625     0.51   0.608    -1280.794    2183.755
       2006  |   1231.909   798.8279     1.54   0.125    -342.9724     2806.79
       2007  |   3189.187   705.6798     4.52   0.000     1797.946    4580.428
       2008  |   4546.784   940.8339     4.83   0.000     2691.939    6401.629
       2009  |   6377.666   1102.153     5.79   0.000     4204.781     8550.55
       2010  |   10929.87   1625.424     6.72   0.000     7725.366    14134.38
       2011  |   14192.97   2173.441     6.53   0.000     9908.055    18477.89
       2012  |   14374.02   2287.422     6.28   0.000     9864.387    18883.65
       2013  |   12256.99    2151.47     5.70   0.000     8015.388    16498.59
       2014  |   9974.526   2152.598     4.63   0.000       5730.7    14218.35
       2015  |   8957.638   2152.965     4.16   0.000     4713.089    13202.19
       2016  |   9712.345    2077.64     4.67   0.000     5616.299    13808.39
       2017  |    6307.63   2285.323     2.76   0.006     1802.138    10813.12
             |
       mx_id |
          3  |  -6837.887   4377.946    -1.56   0.120    -15468.97    1793.193
          8  |     888.05   2554.616     0.35   0.728     -4148.35     5924.45
          9  |   3201.194   1517.543     2.11   0.036      209.372    6193.016
         12  |   18300.36   2916.913     6.27   0.000     12549.69    24051.02
         15  |     7028.4   1090.481     6.45   0.000     4878.528    9178.273
         16  |   10325.45   2537.713     4.07   0.000     5322.374    15328.53
         17  |   7513.284   695.5905    10.80   0.000     6141.934    8884.634
         18  |   9543.812   1871.807     5.10   0.000     5853.563    13234.06
         19  |   3058.527   702.0062     4.36   0.000     1674.529    4442.526
         21  |  -373.2781   2258.316    -0.17   0.869    -4825.526     4078.97
         24  |   13242.34   3086.055     4.29   0.000      7158.21    19326.47
         25  |   3149.115   1403.846     2.24   0.026     381.4468    5916.784
         26  |   3023.298   1260.511     2.40   0.017     538.2135    5508.383
         28  |   3944.224   696.2109     5.67   0.000     2571.651    5316.797
         31  |  -932.2691   1175.494    -0.79   0.429    -3249.745    1385.207
             |
       _cons |   8120.452   7299.997     1.11   0.267    -6271.421    22512.33
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   207) =    26.15
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   207) =    26.15
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   207)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   207)
dpt_tot_prop |      26.15    0.0000 |       30.31   0.0000 |       26.15

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=25.21    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.78
Kleibergen-Paap Wald rk F statistic                                26.15

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,207)=       0.77     P-val=0.3826
Anderson-Rubin Wald test           Chi-sq(1)=      0.89     P-val=0.3461
Stock-Wright LM S statistic        Chi-sq(1)=      1.18     P-val=0.2780

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         33
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         33
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 32,   207) =   182.59
                                                      Prob > F      =   0.0000
Total (centered) SS     =  121238631.6                Centered R2   =   0.9720
Total (uncentered) SS   =  247861471.3                Uncentered R2 =   0.9863
Residual SS             =  3395517.563                Root MSE      =    118.9

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0066008   .0069417     0.95   0.342    -.0070047    .0202062
  active_exp |  -20.39876   11.99882    -1.70   0.089    -43.91601    3.118496
cons_exp_raw |  -27.40254   166.6988    -0.16   0.869    -354.1261    299.3211
             |
          yr |
       2004  |   102.9894   53.57263     1.92   0.055     -2.01103    207.9898
       2005  |   198.1156   50.31565     3.94   0.000     99.49873    296.7325
       2006  |   297.4574   54.36316     5.47   0.000     190.9075    404.0072
       2007  |   310.7904   59.05254     5.26   0.000     195.0496    426.5313
       2008  |   269.7534   63.54278     4.25   0.000     145.2118     394.295
       2009  |   168.3976   63.33594     2.66   0.008     44.26145    292.5338
       2010  |   235.3877   75.46618     3.12   0.002     87.47667    383.2986
       2011  |   301.4044   90.93098     3.31   0.001      123.183    479.6259
       2012  |   311.7319   91.62109     3.40   0.001     132.1578    491.3059
       2013  |   338.9871   85.35236     3.97   0.000     171.6995    506.2746
       2014  |    408.086   81.48883     5.01   0.000     248.3709    567.8012
       2015  |   469.3453   79.04753     5.94   0.000      314.415    624.2756
       2016  |   535.2632   88.56369     6.04   0.000     361.6816    708.8449
       2017  |   130.9449    91.0787     1.44   0.151    -47.56613    309.4558
             |
       mx_id |
          3  |  -428.6889   218.2722    -1.96   0.050    -856.4945    -.883251
          8  |  -202.7269   123.5599    -1.64   0.101    -444.8999    39.44605
          9  |  -220.8454   87.69889    -2.52   0.012     -392.732   -48.95872
         12  |   1527.654   200.6628     7.61   0.000     1134.362    1920.946
         15  |   1391.576   101.7854    13.67   0.000      1192.08    1591.072
         16  |   1811.606   169.4532    10.69   0.000     1479.484    2143.729
         17  |   67.29918   72.21261     0.93   0.351    -74.23494    208.8333
         18  |   -103.546   125.6375    -0.82   0.410     -349.791     142.699
         19  |  -52.52194   51.62404    -1.02   0.309    -153.7032    48.65933
         21  |   857.9537   121.1255     7.08   0.000     620.5522    1095.355
         24  |   224.2366   201.1004     1.12   0.265    -169.9129    618.3861
         25  |   70.10651   81.25245     0.86   0.388    -89.14537    229.3584
         26  |  -151.1034   51.95505    -2.91   0.004    -252.9334   -49.27335
         28  |   49.06302   57.69854     0.85   0.395    -64.02404    162.1501
         31  |  -303.0799   56.00734    -5.41   0.000    -412.8522   -193.3075
             |
       _cons |   240.9639    383.022     0.63   0.529    -509.7454    991.6732
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             25.211
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.783
                         (Kleibergen-Paap rk Wald F statistic):         26.146
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw 2004.yr 2005.yr 2006.yr 2007.yr
                      2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr 2014.yr
                      2015.yr 2016.yr 2017.yr 3.mx_id 8.mx_id 9.mx_id 12.mx_id
                      15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id 21.mx_id
                      24.mx_id 25.mx_id 26.mx_id 28.mx_id 31.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_cons_raw) active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx ib(
> first).yr ib(first).mx_id if qdest==2, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      38  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                    240
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_cons_raw |   1330.095   241.1513     5.52   0.000     854.6266    1805.564
  active_exp |  -4656.407   952.3843    -4.89   0.000    -6534.186   -2778.628
cons_exp_raw |  -4117.189   3190.339    -1.29   0.198    -10407.46    2173.078
         pop |   4012.052   1184.869     3.39   0.001     1675.893    6348.211
   ann_pr_mx |   .0905266   .9805983     0.09   0.927    -1.842881    2.023934
  avg_tmp_mx |  -1070.952    376.717    -2.84   0.005     -1813.71   -328.1933
             |
          yr |
       2004  |   324.1857   877.3008     0.37   0.712    -1405.554    2053.925
       2005  |   297.8916   883.8536     0.34   0.736    -1444.768    2040.551
       2006  |   905.8558   878.7639     1.03   0.304    -826.7685     2638.48
       2007  |   2407.375    790.702     3.04   0.003      848.379    3966.372
       2008  |   3415.464   952.8032     3.58   0.000     1536.859    5294.069
       2009  |   5547.268   1195.754     4.64   0.000     3189.647    7904.889
       2010  |   9345.025   1608.578     5.81   0.000     6173.455    12516.59
       2011  |   13306.95    2171.88     6.13   0.000     9024.739    17589.16
       2012  |   13241.09   2289.475     5.78   0.000     8727.023    17755.16
       2013  |    10599.2   2164.636     4.90   0.000     6331.269    14867.13
       2014  |   8316.886   2176.562     3.82   0.000     4025.443    12608.33
       2015  |   7379.114   2217.088     3.33   0.001     3007.769    11750.46
       2016  |   8103.727   2157.872     3.76   0.000     3849.136    12358.32
       2017  |  -7421.044   4843.604    -1.53   0.127    -16970.99    2128.901
             |
       mx_id |
          3  |   7816.753   5572.643     1.40   0.162    -3170.609    18804.11
          8  |    5081.16   3009.546     1.69   0.093    -852.6428    11014.96
          9  |   21895.73   4529.456     4.83   0.000     12965.18    30826.28
         12  |   10063.72   3786.868     2.66   0.008     2597.296    17530.14
         15  |  -6754.162   5163.996    -1.31   0.192    -16935.81    3427.486
         16  |   10208.41   3134.513     3.26   0.001     4028.219    16388.61
         17  |   17471.27   2518.072     6.94   0.000     12506.48    22436.05
         18  |   22279.77   3534.999     6.30   0.000     15309.95    29249.59
         19  |    577.048   2562.263     0.23   0.822    -4474.865    5628.961
         21  |  -9717.883   4472.609    -2.17   0.031    -18536.35   -899.4135
         24  |   17979.63   3255.325     5.52   0.000     11561.24    24398.03
         25  |   11474.61   2792.174     4.11   0.000     5969.392    16979.83
         26  |   9068.881   2097.789     4.32   0.000     4932.752    13205.01
         28  |   8736.886   2092.583     4.18   0.000     4611.021    12862.75
         31  |   12914.89   4121.542     3.13   0.002     4788.611    21041.18
             |
       _cons |   16718.14   9691.527     1.73   0.086    -2390.266    35826.54
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   204) =    30.42
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   204) =    30.42
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   204)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   204)
dpt_tot_prop |      30.42    0.0000 |       35.79   0.0000 |       30.42

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=27.55    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      46.21
Kleibergen-Paap Wald rk F statistic                                30.42

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,204)=       1.43     P-val=0.2331
Anderson-Rubin Wald test           Chi-sq(1)=      1.68     P-val=0.1946
Stock-Wright LM S statistic        Chi-sq(1)=      2.39     P-val=0.1220

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         36
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         36
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 35,   204) =   190.50
                                                      Prob > F      =   0.0000
Total (centered) SS     =  121238631.6                Centered R2   =   0.9749
Total (uncentered) SS   =  247861471.3                Uncentered R2 =   0.9877
Residual SS             =  3039980.628                Root MSE      =    112.5

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0087789   .0068453     1.28   0.200    -.0046376    .0221953
  active_exp |  -23.16274   11.28413    -2.05   0.040    -45.27923   -1.046239
cons_exp_raw |    -40.574   162.6576    -0.25   0.803    -359.3771    278.2291
         pop |   211.1296   83.43928     2.53   0.011     47.59157    374.6675
   ann_pr_mx |   .0426831   .0543187     0.79   0.432    -.0637797    .1491458
  avg_tmp_mx |  -62.29785   20.07808    -3.10   0.002    -101.6502   -22.94555
             |
          yr |
       2004  |   82.56769   46.08512     1.79   0.073    -7.757488    172.8929
       2005  |   203.8436   45.40485     4.49   0.000     114.8518    292.8355
       2006  |   294.3289   52.64418     5.59   0.000     191.1482    397.5096
       2007  |   276.2469    54.6139     5.06   0.000     169.2057    383.2882
       2008  |   210.9034   60.71224     3.47   0.001     91.90961    329.8972
       2009  |   130.4521     64.823     2.01   0.044     3.401363    257.5029
       2010  |   137.8839   73.85519     1.87   0.062    -6.869591    282.6374
       2011  |   242.4957     92.795     2.61   0.009     60.62086    424.3706
       2012  |   239.4011   92.78526     2.58   0.010     57.54529    421.2568
       2013  |   236.8266   86.26847     2.75   0.006     67.74346    405.9096
       2014  |   311.4754    87.1195     3.58   0.000     140.7243    482.2265
       2015  |   382.6178    88.6739     4.31   0.000     208.8202    556.4154
       2016  |   444.8508   100.7297     4.42   0.000     247.4243    642.2774
       2017  |  -635.4427   262.6131    -2.42   0.016    -1150.155   -120.7304
             |
       mx_id |
          3  |   380.7567    269.999     1.41   0.158    -148.4316     909.945
          8  |   22.08761    137.739     0.16   0.873    -247.8759    292.0511
          9  |   778.3335   307.0977     2.53   0.011     176.4331    1380.234
         12  |   1044.644   211.1202     4.95   0.000     630.8564    1458.432
         15  |   643.7351   317.9094     2.02   0.043     20.64402    1266.826
         16  |   1786.306   187.0236     9.55   0.000     1419.747    2152.866
         17  |   572.7987   194.7261     2.94   0.003     191.1425    954.4548
         18  |   535.4226   277.0957     1.93   0.053    -7.674904     1078.52
         19  |  -182.3439   148.1235    -1.23   0.218    -472.6606    107.9727
         21  |   338.2725   279.8298     1.21   0.227    -210.1838    886.7288
         24  |   442.5285   227.9536     1.94   0.052    -4.252361    889.3094
         25  |   520.1267   166.2372     3.13   0.002     194.3078    845.9457
         26  |   175.2768   112.9084     1.55   0.121    -46.01959    396.5731
         28  |   300.7647   125.7545     2.39   0.017     54.29036     547.239
         31  |   443.6609   209.1586     2.12   0.034     33.71764    853.6041
             |
       _cons |   771.3579   513.7559     1.50   0.133    -235.5852    1778.301
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             27.555
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               46.215
                         (Kleibergen-Paap rk Wald F statistic):         30.422
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp cons_exp_raw pop ann_pr_mx avg_tmp_mx 2004.yr
                      2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr 2011.yr
                      2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr 3.mx_id
                      8.mx_id 9.mx_id 12.mx_id 15.mx_id 16.mx_id 17.mx_id
                      18.mx_id 19.mx_id 21.mx_id 24.mx_id 25.mx_id 26.mx_id
                      28.mx_id 31.mx_id
Excluded instruments: sc_cons_raw
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 ib(first).yr 
> ib(first).mx_id if qdest==2, robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      35  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    240
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   1220.574   235.9458     5.17   0.000     755.4095    1685.739
  active_exp_w1 |  -4213.537   915.0852    -4.60   0.000    -6017.619   -2409.455
cons_exp_raw_w1 |  -3460.626    2960.24    -1.17   0.244    -9296.711    2375.458
                |
             yr |
          2004  |   724.8339   841.7911     0.86   0.390    -934.7491    2384.417
          2005  |   410.8289   849.3981     0.48   0.629    -1263.751    2085.409
          2006  |   1188.164   767.8183     1.55   0.123    -325.5824    2701.911
          2007  |   3145.442   679.8979     4.63   0.000      1805.03    4485.855
          2008  |   4601.884   918.7298     5.01   0.000     2790.617    6413.151
          2009  |   6391.092   1090.588     5.86   0.000     4241.008    8541.177
          2010  |   10708.25   1584.613     6.76   0.000     7584.198     13832.3
          2011  |    13563.1   1955.969     6.93   0.000     9706.929    17419.28
          2012  |   13813.55   2141.766     6.45   0.000     9591.076    18036.02
          2013  |   11904.35   2068.835     5.75   0.000     7825.664    15983.04
          2014  |   9621.887   2063.936     4.66   0.000     5552.858    13690.92
          2015  |       8605   2057.195     4.18   0.000     4549.259    12660.74
          2016  |   9353.921   1987.222     4.71   0.000     5436.132    13271.71
          2017  |   5957.941   2195.479     2.71   0.007     1629.575    10286.31
                |
          mx_id |
             3  |  -6349.227   4240.588    -1.50   0.136    -14709.51    2011.052
             8  |   1183.907   2466.844     0.48   0.632    -3679.452    6047.266
             9  |    3102.46   1478.095     2.10   0.037     188.4107     6016.51
            12  |   17607.77   2754.908     6.39   0.000      12176.5    23039.05
            15  |    6973.41   1070.091     6.52   0.000     4863.737    9083.084
            16  |   10176.94   2481.413     4.10   0.000     5284.853    15069.02
            17  |   7526.387   690.6149    10.90   0.000     6164.846    8887.927
            18  |   9432.751   1827.015     5.16   0.000     5830.809    13034.69
            19  |   3135.001    685.458     4.57   0.000     1783.627    4486.375
            21  |  -151.7341   2184.016    -0.07   0.945    -4457.501    4154.033
            24  |    13093.6   3013.679     4.34   0.000     7152.162    19035.04
            25  |   3071.948   1368.426     2.24   0.026      374.108    5769.787
            26  |   3119.633   1222.464     2.55   0.011      709.557    5529.709
            28  |   3982.418   685.9405     5.81   0.000     2630.093    5334.743
            31  |  -855.7277   1144.907    -0.75   0.456    -3112.901    1401.446
                |
          _cons |   7330.559   7048.941     1.04   0.300    -6566.361    21227.48
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   207) =    26.76
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   207) =    26.76
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   207)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   207)
dpt_tot_prop |      26.76    0.0000 |       31.03   0.0000 |       26.76

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=25.60    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      39.62
Kleibergen-Paap Wald rk F statistic                                26.76

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,207)=       0.73     P-val=0.3932
Anderson-Rubin Wald test           Chi-sq(1)=      0.85     P-val=0.3569
Stock-Wright LM S statistic        Chi-sq(1)=      1.13     P-val=0.2878

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         33
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         33
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 32,   207) =   187.73
                                                      Prob > F      =   0.0000
Total (centered) SS     =  120324391.9                Centered R2   =   0.9726
Total (uncentered) SS   =  246622522.5                Uncentered R2 =   0.9866
Residual SS             =  3300286.074                Root MSE      =    117.3

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0068158   .0073314     0.93   0.353    -.0075534     .021185
  active_exp_w1 |  -21.98401   11.76574    -1.87   0.062    -45.04445    1.076423
cons_exp_raw_w1 |  -12.25165     165.77    -0.07   0.941    -337.1549    312.6516
                |
             yr |
          2004  |   100.9872   53.65563     1.88   0.060    -4.175862    206.1503
          2005  |   195.7449   50.29316     3.89   0.000     97.17209    294.3176
          2006  |   294.9399   54.23284     5.44   0.000     188.6455    401.2343
          2007  |    307.852   59.07466     5.21   0.000     192.0678    423.6362
          2008  |   271.1221   64.55644     4.20   0.000     144.5938    397.6504
          2009  |   170.3657   64.93487     2.62   0.009     43.09568    297.6357
          2010  |   241.9372    76.2583     3.17   0.002     92.47363    391.4007
          2011  |    311.537   90.52883     3.44   0.001     134.1038    488.9703
          2012  |   321.0224   91.67909     3.50   0.000     141.3347    500.7101
          2013  |   347.5655   85.47739     4.07   0.000     180.0329    515.0981
          2014  |   417.1554   80.77456     5.16   0.000     258.8401    575.4706
          2015  |   477.9341   78.10717     6.12   0.000     324.8468    631.0213
          2016  |   533.8914   88.07388     6.06   0.000     361.2697     706.513
          2017  |   144.2848   89.13545     1.62   0.106    -30.41745    318.9871
                |
          mx_id |
             3  |  -411.8727   217.6915    -1.89   0.058    -838.5401    14.79475
             8  |  -196.0831     124.25    -1.58   0.115    -439.6086    47.44254
             9  |  -227.3323   87.36361    -2.60   0.009    -398.5618   -56.10276
            12  |   1516.121   201.0382     7.54   0.000     1122.093    1910.148
            15  |   1385.397   103.8367    13.34   0.000      1181.88    1588.913
            16  |    1782.87   166.7518    10.69   0.000     1456.042    2109.697
            17  |   62.91927   74.58498     0.84   0.399     -83.2646    209.1031
            18  |   -113.519   126.7621    -0.90   0.371    -361.9681      134.93
            19  |  -55.34357   52.85843    -1.05   0.295    -158.9442    48.25705
            21  |   864.8006    121.474     7.12   0.000     626.7159    1102.885
            24  |   206.4035    202.134     1.02   0.307    -189.7718    602.5788
            25  |   63.66164   81.17374     0.78   0.433    -95.43597    222.7592
            26  |   -150.969   53.38085    -2.83   0.005    -255.5936   -46.34446
            28  |    44.4629   58.78148     0.76   0.449    -70.74669    159.6725
            31  |  -300.1401   56.12452    -5.35   0.000    -410.1421    -190.138
                |
          _cons |   208.1199   381.5486     0.55   0.585    -539.7016    955.9413
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             25.596
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               39.625
                         (Kleibergen-Paap rk Wald F statistic):         26.761
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 2004.yr 2005.yr 2006.yr
                      2007.yr 2008.yr 2009.yr 2010.yr 2011.yr 2012.yr 2013.yr
                      2014.yr 2015.yr 2016.yr 2017.yr 3.mx_id 8.mx_id 9.mx_id
                      12.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id
                      21.mx_id 24.mx_id 25.mx_id 26.mx_id 28.mx_id 31.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_cons_raw_w1) active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx
>  avg_tmp_mx ib(first).yr ib(first).mx_id if qdest==2, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      38  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                    240
---------------------------------------------------------------------------------
                |               Robust
dpt_tot_prop_w1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
 sc_cons_raw_w1 |   1265.948   226.6212     5.59   0.000     819.1281    1712.768
  active_exp_w1 |  -4422.496   896.3535    -4.93   0.000    -6189.801   -2655.191
cons_exp_raw_w1 |  -3750.604   3081.663    -1.22   0.225    -9826.598    2325.389
            pop |    3792.32    1101.07     3.44   0.001     1621.384    5963.256
      ann_pr_mx |   .1634302   .9605359     0.17   0.865    -1.730421    2.057281
     avg_tmp_mx |  -1059.488   358.5769    -2.95   0.003     -1766.48   -352.4954
                |
             yr |
          2004  |     298.76   852.0713     0.35   0.726    -1381.236    1978.756
          2005  |   294.0619   865.7326     0.34   0.734    -1412.869    2000.993
          2006  |   913.8973   856.5262     1.07   0.287    -774.8818    2602.676
          2007  |   2426.472   776.9033     3.12   0.002     894.6827    3958.262
          2008  |   3554.803   929.8067     3.82   0.000     1721.539    5388.067
          2009  |   5663.188    1182.37     4.79   0.000     3331.955    7994.422
          2010  |   9226.972   1591.617     5.80   0.000     6088.844     12365.1
          2011  |    12787.8   2018.616     6.33   0.000     8807.777    16767.83
          2012  |   12800.23   2192.276     5.84   0.000     8477.803    17122.65
          2013  |    10369.7   2114.088     4.91   0.000     6201.434    14537.96
          2014  |   8094.332   2120.331     3.82   0.000     3913.758    12274.91
          2015  |   7167.589   2157.337     3.32   0.001     2914.053    11421.13
          2016  |   7900.834   2111.474     3.74   0.000     3737.722    12063.95
          2017  |  -7436.917   4654.832    -1.60   0.112    -16614.67    1740.834
                |
          mx_id |
             3  |    7747.65   5370.481     1.44   0.151    -2841.118    18336.42
             8  |   5269.098    2911.06     1.81   0.072    -470.5255    11008.72
             9  |   21084.59   4271.356     4.94   0.000     12662.93    29506.26
            12  |   9798.565    3607.01     2.72   0.007     2686.765    16910.36
            15  |  -5984.117   4817.091    -1.24   0.216    -15481.79    3513.552
            16  |   10189.46   3030.069     3.36   0.001     4215.188    16163.73
            17  |   17073.65   2391.522     7.14   0.000     12358.38    21788.92
            18  |   21571.95   3338.839     6.46   0.000     14988.89    28155.01
            19  |    926.335    2410.37     0.38   0.701    -3826.098    5678.767
            21  |  -8977.054    4235.81    -2.12   0.035    -17328.64   -625.4721
            24  |   17605.58   3167.961     5.56   0.000     11359.43    23851.72
            25  |   11185.49   2675.701     4.18   0.000     5909.916    16461.07
            26  |   8998.572   2016.171     4.46   0.000     5023.367    12973.78
            28  |   8690.762   2013.977     4.32   0.000     4719.882    12661.64
            31  |   12575.84   3935.364     3.20   0.002     4816.637    20335.04
                |
          _cons |   16215.59   9333.114     1.74   0.084    -2186.151    34617.32
---------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,   204) =    31.21
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,   204) =    31.21
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   204)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   204)
dpt_tot_prop |      31.21    0.0000 |       36.71   0.0000 |       31.21

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=27.96    P-val=0.0000

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      46.35
Kleibergen-Paap Wald rk F statistic                                31.21

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,204)=       1.38     P-val=0.2407
Anderson-Rubin Wald test           Chi-sq(1)=      1.63     P-val=0.2018
Stock-Wright LM S statistic        Chi-sq(1)=      2.33     P-val=0.1267

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =        240
Number of regressors                 K  =         36
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         36
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =      240
                                                      F( 35,   204) =   196.00
                                                      Prob > F      =   0.0000
Total (centered) SS     =  120324391.9                Centered R2   =   0.9755
Total (uncentered) SS   =  246622522.5                Uncentered R2 =   0.9881
Residual SS             =  2945934.624                Root MSE      =    110.8

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0090993   .0072035     1.26   0.207    -.0050194    .0232179
  active_exp_w1 |  -24.73866    11.0275    -2.24   0.025    -46.35216   -3.125155
cons_exp_raw_w1 |  -26.89943   162.2025    -0.17   0.868    -344.8104    291.0116
            pop |   210.8753   84.27148     2.50   0.012     45.70622    376.0444
      ann_pr_mx |   .0459464   .0533612     0.86   0.389    -.0586396    .1505325
     avg_tmp_mx |   -61.7794   20.20509    -3.06   0.002    -101.3807   -22.17815
                |
             yr |
          2004  |   81.44008   46.32958     1.76   0.079    -9.364233    172.2444
          2005  |   202.8574   45.68532     4.44   0.000     113.3159     292.399
          2006  |   293.2538   52.84987     5.55   0.000     189.6699    396.8376
          2007  |    274.504   54.64439     5.02   0.000      167.403     381.605
          2008  |   212.6371   61.42913     3.46   0.001     92.23818     333.036
          2009  |   133.0051   65.92382     2.02   0.044      3.79679    262.2134
          2010  |   144.8118   73.91147     1.96   0.050    -.0520321    289.6756
          2011  |   253.5752   92.03726     2.76   0.006     73.18549    433.9649
          2012  |   249.5992   92.36668     2.70   0.007     68.56382    430.6346
          2013  |   245.8147   85.73853     2.87   0.004     77.77028    413.8591
          2014  |    321.085    86.0848     3.73   0.000     152.3618    489.8081
          2015  |   391.9264    87.5538     4.48   0.000     220.3241    563.5287
          2016  |   443.7178   99.91565     4.44   0.000     247.8867    639.5489
          2017  |  -613.9052   263.1599    -2.33   0.020    -1129.689   -98.12131
                |
          mx_id |
             3  |   392.8473    270.176     1.45   0.146     -136.688    922.3826
             8  |   25.21689   138.7343     0.18   0.856    -246.6974    297.1312
             9  |    765.174   310.8286     2.46   0.014     155.9611    1374.387
            12  |   1032.553    210.501     4.91   0.000     619.9788    1445.127
            15  |   634.8502   319.5733     1.99   0.047     8.497973    1261.202
            16  |   1753.918   184.3532     9.51   0.000     1392.593    2115.244
            17  |   562.9528   197.8524     2.85   0.004     175.1693    950.7363
            18  |    519.626   280.6092     1.85   0.064    -30.35801     1069.61
            19  |  -188.2122   149.1889    -1.26   0.207    -480.6171    104.1928
            21  |   340.9366    282.432     1.21   0.227    -212.6199    894.4931
            24  |   422.0927   230.0103     1.84   0.066    -28.71932    872.9046
            25  |   508.9624   167.8193     3.03   0.002     180.0426    837.8822
            26  |   172.0803   114.7836     1.50   0.134    -52.89152     397.052
            28  |   291.6101   127.0376     2.30   0.022     42.62108    540.5992
            31  |   438.5019   210.4574     2.08   0.037     26.01295    850.9908
                |
          _cons |   731.7052   515.1289     1.42   0.155    -277.9288    1741.339
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             27.959
                                                   Chi-sq(1) P-val =    0.0000
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               46.351
                         (Kleibergen-Paap rk Wald F statistic):         31.205
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 cons_exp_raw_w1 pop ann_pr_mx avg_tmp_mx
                      2004.yr 2005.yr 2006.yr 2007.yr 2008.yr 2009.yr 2010.yr
                      2011.yr 2012.yr 2013.yr 2014.yr 2015.yr 2016.yr 2017.yr
                      3.mx_id 8.mx_id 9.mx_id 12.mx_id 15.mx_id 16.mx_id
                      17.mx_id 18.mx_id 19.mx_id 21.mx_id 24.mx_id 25.mx_id
                      26.mx_id 28.mx_id 31.mx_id
Excluded instruments: sc_cons_raw_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Next, move final eight lines of first table to end of second t
> able. Delete \midrule between the the tables. Penultimately, consolidate notes by moving all of them f
> rom \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which should sit between \end{t
> abular} and \end{threeparttable}. Set notes in \scriptsize. Last, put separate terms in Kleibergen-Paa
> p F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_ft2.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}"
> , nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0.
> 5cm} Deportations" active_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "
> \hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.
> 5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{2}" "\te
> xtit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(1 0 1 0)
>  prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of Deportat
> ions on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 dpt_tot_
> prop active_exp_w1 active_exp cons_exp_raw_w1 cons_exp_raw) stats(N F Fp widstat, fmt(0 3 3 3) label(O
> bservations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust standard e
> rrors in parentheses. All models contain state and year fixed effects.") collabels(none) noobs booktab
> s
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ft2.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ft2.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_f
> t2.tex", append refcat(sc_cons_raw "\emph{First Stage}", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0
> .1 ** 0.05 *** 0.01) nomtitle varlabels(sc_cons_raw "\hspace{0.5cm} Policy $\times$ Partisanship" acti
> ve_exp "\hspace{0.5cm} Policy" cons_exp_raw "\hspace{0.5cm} Partisanship" pop "\hspace{0.5cm} Populati
> on (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm} Temperature (ºC)" 
> _cons "\hspace{0.5cm} Constant") nonumber rename(sc_cons_raw_w1 sc_cons_raw active_exp_w1 active_exp c
> ons_exp_raw_w1 cons_exp_raw) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_ft2.tex)

. 
. 
. 
. /***** Main analyses with anti-immigrant sentiment as political instrument *****/
. /* IV with exposure to anti-immigrant sentiment */
. /* Raw data */
. // Clear storage 
. eststo clear

. // Without control variables
. tsset mx_id yr

Panel variable: mx_id (strongly balanced)
 Time variable: yr, 2003 to 2017
         Delta: 1 unit

. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_anti_exp) active_exp anti_exp ib(first).yr ib(first).mx_id, ro
> bust first savefirst savefprefix(est1_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est1_dpt_t~p | ivreg2    dpt_tot_prop      39  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                     96
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_anti_exp |    84647.1   16693.55     5.07   0.000     51243.38    118050.8
  active_exp |  -130643.1   30093.05    -4.34   0.000    -190859.1   -70427.01
    anti_exp |   3295.133   2046.213     1.61   0.113    -799.3307    7389.596
             |
          yr |
       2006  |   874.6758   333.2804     2.62   0.011     207.7833    1541.568
       2008  |   4167.173   910.8088     4.58   0.000     2344.649    5989.697
             |
       mx_id |
          2  |  -6489.828   1307.016    -4.97   0.000    -9105.161   -3874.494
          3  |  -3244.313   3570.544    -0.91   0.367    -10388.96     3900.33
          4  |  -2427.495    3732.88    -0.65   0.518    -9896.971    5041.981
          5  |  -1622.358   2790.071    -0.58   0.563    -7205.277    3960.561
          6  |  -882.1655   3710.711    -0.24   0.813     -8307.28    6542.949
          7  |   -3919.62   2685.345    -1.46   0.150    -9292.982    1453.742
          8  |     126.16    2940.28     0.04   0.966    -5757.326    6009.646
          9  |  -5994.974   861.7097    -6.96   0.000    -7719.251   -4270.696
         10  |   2264.905   1826.676     1.24   0.220    -1390.266    5920.075
         11  |  -3799.351   990.4914    -3.84   0.000     -5781.32   -1817.382
         12  |   2592.031   1984.668     1.31   0.197    -1379.281    6563.343
         13  |  -1765.056   2086.343    -0.85   0.401     -5939.82    2409.707
         14  |  -2004.892   1548.785    -1.29   0.201    -5104.004     1094.22
         15  |  -3288.697   918.2156    -3.58   0.001    -5126.042   -1451.352
         16  |  -2886.464   1846.728    -1.56   0.123    -6581.757      808.83
         17  |  -1478.932   866.7266    -1.71   0.093    -3213.248    255.3841
         18  |  -2568.228   1187.425    -2.16   0.035     -4944.26   -192.1958
         19  |  -3061.025   1788.225    -1.71   0.092    -6639.256    517.2052
         20  |  -848.8872   1624.062    -0.52   0.603    -4098.627    2400.853
         21  |  -3691.328   1657.827    -2.23   0.030    -7008.631   -374.0239
         22  |   1261.565   1556.155     0.81   0.421    -1852.294    4375.424
         23  |  -142.8834   3975.282    -0.04   0.971    -8097.405    7811.638
         24  |    -2252.1   1411.517    -1.60   0.116    -5076.539    572.3377
         25  |  -6254.308   1771.517    -3.53   0.001    -9799.106   -2709.511
         26  |  -638.4025   2018.971    -0.32   0.753    -4678.355     3401.55
         27  |  -156.8828   3775.088    -0.04   0.967    -7710.816     7397.05
         28  |  -3106.495   1658.132    -1.87   0.066     -6424.41    211.4191
         29  |  -3979.126   1897.709    -2.10   0.040    -7776.432   -181.8191
         30  |  -1659.988    1886.86    -0.88   0.383    -5435.587    2115.611
         31  |  -5959.202   1477.466    -4.03   0.000    -8915.604     -3002.8
         32  |   1997.795   1557.607     1.28   0.205    -1118.969    5114.559
             |
       _cons |  -1453.107   5783.626    -0.25   0.802    -13026.12     10119.9
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    59) =    25.71
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    59) =    25.71
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    59)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    59)
dpt_tot_prop |      25.71    0.0000 |       41.84   0.0000 |       25.71

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=14.74    P-val=0.0001

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      45.98
Kleibergen-Paap Wald rk F statistic                                25.71

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,59)=        2.65     P-val=0.1091
Anderson-Rubin Wald test           Chi-sq(1)=      4.31     P-val=0.0380
Stock-Wright LM S statistic        Chi-sq(1)=      4.83     P-val=0.0280

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =         96
Number of regressors                 K  =         37
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         37
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =       96
                                                      F( 36,    59) =   170.37
                                                      Prob > F      =   0.0000
Total (centered) SS     =  41603812.69                Centered R2   =   0.9811
Total (uncentered) SS   =  91260211.89                Uncentered R2 =   0.9914
Residual SS             =  785248.4766                Root MSE      =    90.44

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0133605    .006068     2.20   0.028     .0014674    .0252536
  active_exp |  -475.0142   321.4187    -1.48   0.139    -1104.983    154.9548
    anti_exp |  -58.58164   106.2692    -0.55   0.581    -266.8654    149.7022
             |
          yr |
       2006  |   212.5367   26.84187     7.92   0.000     159.9276    265.1458
       2008  |   152.1149   45.54271     3.34   0.001     62.85284     241.377
             |
       mx_id |
          2  |    12.4124   98.87694     0.13   0.900    -181.3828    206.2076
          3  |  -289.5787   206.4809    -1.40   0.161    -694.2739    115.1165
          4  |  -256.1298   206.6432    -1.24   0.215    -661.1431    148.8835
          5  |   453.1973   164.5983     2.75   0.006     130.5906     775.804
          6  |   70.67364   209.8532     0.34   0.736     -340.631    481.9783
          7  |   867.6964   168.2081     5.16   0.000     538.0145    1197.378
          8  |  -99.96623   161.1343    -0.62   0.535    -415.7837    215.8513
          9  |  -89.94505   87.86315    -1.02   0.306    -262.1536    82.26355
         10  |   25.18537   84.11864     0.30   0.765    -139.6841    190.0549
         11  |   1570.488   125.5489    12.51   0.000     1324.416    1816.559
         12  |   1736.057   117.6113    14.76   0.000     1505.544    1966.571
         13  |   978.8988   135.0701     7.25   0.000     714.1663    1243.631
         14  |   572.3185   96.89414     5.91   0.000     382.4094    762.2275
         15  |   1487.951   89.76372    16.58   0.000     1312.017    1663.885
         16  |   2115.195   99.55899    21.25   0.000     1920.063    2310.327
         17  |   223.9465   62.24241     3.60   0.000     101.9536    345.9394
         18  |   17.71615   79.48082     0.22   0.824    -138.0634    173.4957
         19  |   18.28522   111.9813     0.16   0.870    -201.1941    237.7645
         20  |   944.0121    126.365     7.47   0.000     696.3413    1191.683
         21  |   1073.397   140.9743     7.61   0.000     797.0921    1349.701
         22  |   62.61795   77.96466     0.80   0.422    -90.18997    215.4259
         23  |  -261.1505    222.295    -1.17   0.240    -696.8406    174.5397
         24  |   319.4664   69.72752     4.58   0.000     182.8029    456.1298
         25  |   191.1419   74.43144     2.57   0.010       45.259    337.0249
         26  |  -50.79005   108.2576    -0.47   0.639     -262.971     161.391
         27  |  -188.0841   205.5217    -0.92   0.360    -590.8994    214.7311
         28  |   123.9149   98.39938     1.26   0.208    -68.94438    316.7741
         29  |  -40.08214   123.5787    -0.32   0.746     -282.292    202.1277
         30  |   1166.276   126.3477     9.23   0.000     918.6387    1413.913
         31  |  -153.7646   119.5528    -1.29   0.198    -388.0837    80.55454
         32  |   238.9892   71.14207     3.36   0.001     99.55335    378.4251
             |
       _cons |   250.3268   318.6983     0.79   0.432    -374.3104     874.964
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             14.744
                                                   Chi-sq(1) P-val =    0.0001
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               45.980
                         (Kleibergen-Paap rk Wald F statistic):         25.711
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp anti_exp 2006.yr 2008.yr 2.mx_id 3.mx_id
                      4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id
                      11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id
                      17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id
                      23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id
                      29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_anti_exp
------------------------------------------------------------------------------
(est1 stored)

. // With control variables
. eststo: xi: ivreg2 rem (dpt_tot_prop=sc_anti_exp) active_exp anti_exp pop ann_pr_mx avg_tmp_mx ib(firs
> t).yr ib(first).mx_id, robust first savefirst savefprefix(est2_)

Stored estimation results
-------------------------
-----------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+---------------------------------------------------------------------
est2_dpt_t~p | ivreg2    dpt_tot_prop      42  First-stage regression: dpt_tot_prop
-----------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop:

Statistics robust to heteroskedasticity
Number of obs =                     96
------------------------------------------------------------------------------
             |               Robust
dpt_tot_prop | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 sc_anti_exp |   83986.91   16396.41     5.12   0.000     51140.96    116832.9
  active_exp |  -129686.1   29703.66    -4.37   0.000    -189189.7   -70182.52
    anti_exp |   3245.356   2129.031     1.52   0.133    -1019.605    7510.316
         pop |   1196.817   2446.135     0.49   0.627    -3703.379    6097.014
   ann_pr_mx |   .0691345   1.055503     0.07   0.948    -2.045292    2.183561
  avg_tmp_mx |  -114.5955   558.9262    -0.21   0.838    -1234.259    1005.068
             |
          yr |
       2006  |   816.0371    509.377     1.60   0.115    -204.3677    1836.442
       2008  |   3949.757   1090.937     3.62   0.001     1764.348    6135.167
             |
       mx_id |
          2  |  -8649.573   4461.252    -1.94   0.058    -17586.53    287.3883
          3  |  -2096.327    4668.45    -0.45   0.655    -11448.36    7255.702
          4  |  -1228.043   5796.271    -0.21   0.833    -12839.37    10383.28
          5  |  -5014.693   9011.143    -0.56   0.580    -23066.18     13036.8
          6  |  -3736.548   6283.997    -0.59   0.554    -16324.91    8851.811
          7  |  -13831.11   19104.92    -0.72   0.472    -52102.87    24440.64
          8  |  -1333.449   4511.941    -0.30   0.769    -10371.95    7705.056
          9  |  -4461.225   4992.778    -0.89   0.375    -14462.96    5540.511
         10  |    1666.04   2221.302     0.75   0.456    -2783.763    6115.842
         11  |   -19855.7   32161.05    -0.62   0.539    -84282.02    44570.63
         12  |   -2053.95   9532.512    -0.22   0.830    -21149.87    17041.97
         13  |  -3635.111   6295.015    -0.58   0.566    -16245.54     8975.32
         14  |  -3840.347   3618.766    -1.06   0.293    -11089.61    3408.913
         15  |  -9926.637   14314.47    -0.69   0.491    -38601.97     18748.7
         16  |  -5956.062   8149.473    -0.73   0.468    -22281.42    10369.29
         17  |  -1660.528   3175.197    -0.52   0.603    -8021.212    4700.156
         18  |  -1986.508     3095.2    -0.64   0.524    -8186.938    4213.923
         19  |  -6472.169   7947.111    -0.81   0.419    -22392.15    9447.807
         20  |  -3441.319   6536.168    -0.53   0.601    -16534.84    9652.198
         21  |   -8837.42   10705.42    -0.83   0.413    -30282.96    12608.12
         22  |   393.2518   2244.042     0.18   0.862    -4102.104    4888.608
         23  |   618.5919    6036.99     0.10   0.919    -11474.95    12712.14
         24  |  -3613.534    3837.78    -0.94   0.350    -11301.53    4074.463
         25  |  -7373.269   5848.007    -1.26   0.213    -19088.23    4341.696
         26  |  -1888.231   3892.598    -0.49   0.630    -9686.041    5909.579
         27  |  -477.2238    6425.54    -0.07   0.941    -13349.13    12394.68
         28  |  -4917.551    5588.82    -0.88   0.383     -16113.3      6278.2
         29  |   -4239.39   2125.133    -1.99   0.051    -8496.543    17.76222
         30  |  -8408.123   15426.05    -0.55   0.588    -39310.21    22493.97
         31  |  -5872.313   5678.367    -1.03   0.306    -17247.45    5502.824
         32  |    1537.13   1880.891     0.82   0.417    -2230.748    5305.008
             |
       _cons |  -556.7273   12848.55    -0.04   0.966    -26295.47    25182.01
------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    56) =    26.24
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    56) =    26.24
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    56)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    56)
dpt_tot_prop |      26.24    0.0000 |       44.98   0.0000 |       26.24

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=15.16    P-val=0.0001

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      42.68
Kleibergen-Paap Wald rk F statistic                                26.24

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,56)=        2.31     P-val=0.1341
Anderson-Rubin Wald test           Chi-sq(1)=      3.96     P-val=0.0466
Stock-Wright LM S statistic        Chi-sq(1)=      4.26     P-val=0.0390

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =         96
Number of regressors                 K  =         40
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         40
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =       96
                                                      F( 39,    56) =   179.98
                                                      Prob > F      =   0.0000
Total (centered) SS     =  41603812.69                Centered R2   =   0.9873
Total (uncentered) SS   =  91260211.89                Uncentered R2 =   0.9942
Residual SS             =  529863.9658                Root MSE      =    74.29

------------------------------------------------------------------------------
             |               Robust
         rem | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
dpt_tot_prop |   .0108082   .0058837     1.84   0.066    -.0007236      .02234
  active_exp |  -323.0979   276.6537    -1.17   0.243    -865.3293    219.1334
    anti_exp |  -103.6316   86.80453    -1.19   0.233    -273.7654    66.50214
         pop |   564.5988   125.7067     4.49   0.000     318.2182    810.9795
   ann_pr_mx |    -.22359    .073346    -3.05   0.002    -.3673456   -.0798344
  avg_tmp_mx |  -5.753991    22.8726    -0.25   0.801    -50.58346    39.07548
             |
          yr |
       2006  |   98.83408   27.99242     3.53   0.000     43.96994    153.6982
       2008  |  -22.61778   44.62312    -0.51   0.612    -110.0775    64.84193
             |
       mx_id |
          2  |  -1133.395   233.2483    -4.86   0.000    -1590.553   -676.2369
          3  |  -136.1599   195.1417    -0.70   0.485    -518.6305    246.3108
          4  |  -15.37759   215.4617    -0.07   0.943    -437.6747    406.9195
          5  |  -1178.607   494.4676    -2.38   0.017    -2147.745    -209.468
          6  |  -1289.485   323.3503    -3.99   0.000     -1923.24   -655.7302
          7  |  -3427.697   1015.497    -3.38   0.001    -5418.034   -1437.359
          8  |  -1026.516   222.7238    -4.61   0.000    -1463.047   -589.9854
          9  |   277.7938   198.1388     1.40   0.161    -110.5512    666.1388
         10  |  -230.2827   80.24473    -2.87   0.004    -387.5595   -73.00588
         11  |  -5747.487   1650.703    -3.48   0.000    -8982.805   -2512.169
         12  |  -439.0057   517.8752    -0.85   0.397    -1454.022     576.011
         13  |  -98.33111   323.1529    -0.30   0.761    -731.6991    535.0369
         14  |   -193.399   190.0801    -1.02   0.309    -565.9492    179.1512
         15  |  -1681.493   759.7391    -2.21   0.027    -3170.554   -192.4313
         16  |   565.6585   421.5301     1.34   0.180    -260.5253    1391.842
         17  |    42.4707   153.8425     0.28   0.782     -259.055    343.9964
         18  |   285.4824   140.3927     2.03   0.042     10.31775     560.647
         19  |  -1810.668    433.322    -4.18   0.000    -2659.963   -961.3725
         20  |  -333.4289   363.4406    -0.92   0.359    -1045.759    378.9015
         21  |  -1301.999   584.0529    -2.23   0.026    -2446.722   -157.2766
         22  |  -199.4875   102.2971    -1.95   0.051    -399.9862    1.011151
         23  |  -197.8227   233.3987    -0.85   0.397    -655.2758    259.6303
         24  |  -401.0458   194.8093    -2.06   0.040    -782.8649   -19.22664
         25  |  -618.8228   261.2069    -2.37   0.018    -1130.779   -106.8668
         26  |  -894.1081    196.758    -4.54   0.000    -1279.747   -508.4696
         27  |  -480.3344   288.1917    -1.67   0.096     -1045.18    84.51093
         28  |  -960.4959   291.4578    -3.30   0.001    -1531.743   -389.2492
         29  |  -11.08152   106.8486    -0.10   0.917    -220.5009    198.3379
         30  |  -2057.635   845.8662    -2.43   0.015    -3715.503   -399.7681
         31  |  -450.4224   246.4803    -1.83   0.068    -933.5148    32.67013
         32  |   45.80886   64.73326     0.71   0.479      -81.066    172.6837
             |
       _cons |   100.8112   575.1159     0.18   0.861    -1026.395    1228.018
------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             15.164
                                                   Chi-sq(1) P-val =    0.0001
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               42.684
                         (Kleibergen-Paap rk Wald F statistic):         26.238
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop
Included instruments: active_exp anti_exp pop ann_pr_mx avg_tmp_mx 2006.yr
                      2008.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id 7.mx_id
                      8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id 13.mx_id
                      14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id 19.mx_id
                      20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id 25.mx_id
                      26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id 31.mx_id
                      32.mx_id
Excluded instruments: sc_anti_exp
------------------------------------------------------------------------------
(est2 stored)

. /* Winsorized data (0.5, 99.5) */
. winsor2 anti_exp, cuts(0.5 99.5) suffix(_w1)
Warning: cuts(1   99) means winsor at   1th percentile and 99th percentile,
         cuts(0.1 90) means winsor at 0.1th percentile and 90th percentile,
         make sure cuts(.5 99.5) you specified is what you want. 

. gen sc_anti_exp_w1 = active_exp_w1*anti_exp_w1
(384 missing values generated)

. // Without control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_anti_exp_w1) active_exp_w1 anti_exp_w1 ib(first).yr ib(f
> irst).mx_id, robust first savefirst savefprefix(est3_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est3_dpt_t~1 | ivreg2    dpt_tot_pr~1      39  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                     96
--------------------------------------------------------------------------------
               |               Robust
dpt_tot_prop~1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
sc_anti_exp_w1 |    84647.1   16693.55     5.07   0.000     51243.38    118050.8
 active_exp_w1 |  -130643.1   30093.05    -4.34   0.000    -190859.1   -70427.01
   anti_exp_w1 |   3295.133   2046.213     1.61   0.113    -799.3307    7389.596
               |
            yr |
         2006  |   874.6758   333.2804     2.62   0.011     207.7833    1541.568
         2008  |   4167.173   910.8088     4.58   0.000     2344.649    5989.697
               |
         mx_id |
            2  |  -6489.828   1307.016    -4.97   0.000    -9105.161   -3874.494
            3  |  -3244.313   3570.544    -0.91   0.367    -10388.96     3900.33
            4  |  -2427.495    3732.88    -0.65   0.518    -9896.971    5041.981
            5  |  -1622.358   2790.071    -0.58   0.563    -7205.277    3960.561
            6  |  -882.1655   3710.711    -0.24   0.813     -8307.28    6542.949
            7  |   -3919.62   2685.345    -1.46   0.150    -9292.982    1453.742
            8  |     126.16    2940.28     0.04   0.966    -5757.326    6009.646
            9  |  -5994.974   861.7097    -6.96   0.000    -7719.251   -4270.696
           10  |   2264.905   1826.676     1.24   0.220    -1390.266    5920.075
           11  |  -3799.351   990.4914    -3.84   0.000     -5781.32   -1817.382
           12  |   2592.031   1984.668     1.31   0.197    -1379.281    6563.343
           13  |  -1765.056   2086.343    -0.85   0.401     -5939.82    2409.707
           14  |  -2004.892   1548.785    -1.29   0.201    -5104.004     1094.22
           15  |  -3288.697   918.2156    -3.58   0.001    -5126.042   -1451.352
           16  |  -2886.464   1846.728    -1.56   0.123    -6581.757      808.83
           17  |  -1478.932   866.7266    -1.71   0.093    -3213.248    255.3841
           18  |  -2568.228   1187.425    -2.16   0.035     -4944.26   -192.1958
           19  |  -3061.025   1788.225    -1.71   0.092    -6639.256    517.2052
           20  |  -848.8872   1624.062    -0.52   0.603    -4098.627    2400.853
           21  |  -3691.328   1657.827    -2.23   0.030    -7008.631   -374.0239
           22  |   1261.565   1556.155     0.81   0.421    -1852.294    4375.424
           23  |  -142.8834   3975.282    -0.04   0.971    -8097.405    7811.638
           24  |    -2252.1   1411.517    -1.60   0.116    -5076.539    572.3377
           25  |  -6254.308   1771.517    -3.53   0.001    -9799.106   -2709.511
           26  |  -638.4025   2018.971    -0.32   0.753    -4678.355     3401.55
           27  |  -156.8828   3775.088    -0.04   0.967    -7710.816     7397.05
           28  |  -3106.495   1658.132    -1.87   0.066     -6424.41    211.4191
           29  |  -3979.126   1897.709    -2.10   0.040    -7776.432   -181.8191
           30  |  -1659.988    1886.86    -0.88   0.383    -5435.587    2115.611
           31  |  -5959.202   1477.466    -4.03   0.000    -8915.604     -3002.8
           32  |   1997.795   1557.607     1.28   0.205    -1118.969    5114.559
               |
         _cons |  -1453.107   5783.626    -0.25   0.802    -13026.12     10119.9
--------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    59) =    25.71
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    59) =    25.71
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    59)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    59)
dpt_tot_prop |      25.71    0.0000 |       41.84   0.0000 |       25.71

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=14.74    P-val=0.0001

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      45.98
Kleibergen-Paap Wald rk F statistic                                25.71

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,59)=        2.65     P-val=0.1092
Anderson-Rubin Wald test           Chi-sq(1)=      4.30     P-val=0.0380
Stock-Wright LM S statistic        Chi-sq(1)=      4.82     P-val=0.0282

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =         96
Number of regressors                 K  =         37
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         37
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =       96
                                                      F( 36,    59) =   170.46
                                                      Prob > F      =   0.0000
Total (centered) SS     =  41594526.82                Centered R2   =   0.9811
Total (uncentered) SS   =   91260492.9                Uncentered R2 =   0.9914
Residual SS             =  786891.0033                Root MSE      =    90.54

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |    .013355    .006066     2.20   0.028     .0014659    .0252441
  active_exp_w1 |  -471.3376   322.0205    -1.46   0.143    -1102.486    159.8109
    anti_exp_w1 |  -58.75035   106.2253    -0.55   0.580    -266.9482    149.4475
                |
             yr |
          2006  |   212.3097   26.86841     7.90   0.000     159.6485    264.9708
          2008  |    151.718   45.59141     3.33   0.001     62.36048    241.0755
                |
          mx_id |
             2  |   12.30046    98.8062     0.12   0.901    -181.3561     205.957
             3  |  -287.6387   206.7279    -1.39   0.164    -692.8179    117.5405
             4  |  -256.4267   206.5553    -1.24   0.214    -661.2676    148.4143
             5  |   452.9589   164.5268     2.75   0.006     130.4924    775.4255
             6  |   70.35282   209.7644     0.34   0.737    -340.7779    481.4836
             7  |   867.4816   168.1307     5.16   0.000     537.9515    1197.012
             8  |  -100.2251   161.0558    -0.62   0.534    -415.8886    215.4384
             9  |  -89.94357   87.78026    -1.02   0.306    -261.9897    82.10258
            10  |   25.08801   84.04351     0.30   0.765    -139.6342    189.8103
            11  |   1570.428   125.5637    12.51   0.000     1324.328    1816.528
            12  |   1736.097   117.6166    14.76   0.000     1505.572    1966.621
            13  |   978.7424   135.0351     7.25   0.000     714.0785    1243.406
            14  |   572.1862   96.84074     5.91   0.000     382.3818    761.9906
            15  |   1487.968   89.75613    16.58   0.000     1312.049    1663.887
            16  |   2115.325   99.48651    21.26   0.000     1920.335    2310.315
            17  |    223.926   62.16915     3.60   0.000     102.0767    345.7753
            18  |   17.75482   79.40679     0.22   0.823    -137.8796    173.3893
            19  |   18.08613   111.9168     0.16   0.872    -201.2667     237.439
            20  |   943.8919   126.3598     7.47   0.000     696.2313    1191.552
            21  |   1073.271   140.9711     7.61   0.000     796.9726    1349.569
            22  |   62.58439   77.88057     0.80   0.422    -90.05873    215.2275
            23  |  -261.4918   222.1998    -1.18   0.239    -696.9955    174.0118
            24  |   319.4598   69.66443     4.59   0.000       182.92    455.9995
            25  |   190.9989    74.3699     2.57   0.010     45.23655    336.7612
            26  |  -51.10632   108.1996    -0.47   0.637    -263.1736     160.961
            27  |  -188.4285   205.4325    -0.92   0.359    -591.0688    214.2118
            28  |   123.7365   98.34342     1.26   0.208    -69.01309     316.486
            29  |  -40.22656   123.5072    -0.33   0.745    -282.2961     201.843
            30  |   1166.116   126.3129     9.23   0.000     918.5471    1413.684
            31  |  -153.8608   119.4654    -1.29   0.198    -388.0088    80.28714
            32  |   238.8961    71.0776     3.36   0.001     99.58654    378.2056
                |
          _cons |   250.9874   318.5754     0.79   0.431    -373.4088    875.3836
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             14.744
                                                   Chi-sq(1) P-val =    0.0001
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               45.980
                         (Kleibergen-Paap rk Wald F statistic):         25.711
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 anti_exp_w1 2006.yr 2008.yr 2.mx_id 3.mx_id
                      4.mx_id 5.mx_id 6.mx_id 7.mx_id 8.mx_id 9.mx_id 10.mx_id
                      11.mx_id 12.mx_id 13.mx_id 14.mx_id 15.mx_id 16.mx_id
                      17.mx_id 18.mx_id 19.mx_id 20.mx_id 21.mx_id 22.mx_id
                      23.mx_id 24.mx_id 25.mx_id 26.mx_id 27.mx_id 28.mx_id
                      29.mx_id 30.mx_id 31.mx_id 32.mx_id
Excluded instruments: sc_anti_exp_w1
------------------------------------------------------------------------------
(est3 stored)

. // With control variables
. eststo: xi: ivreg2 rem_w1 (dpt_tot_prop_w1=sc_anti_exp_w1) active_exp_w1 anti_exp_w1 pop ann_pr_mx avg
> _tmp_mx ib(first).yr ib(first).mx_id, robust first savefirst savefprefix(est4_)

Stored estimation results
-------------------------
--------------------------------------------------------------------------------------
             |           Dependent  Number of        
        Name | Command    variable     param.  Title 
-------------+------------------------------------------------------------------------
est4_dpt_t~1 | ivreg2    dpt_tot_pr~1      42  First-stage regression: dpt_tot_prop_w1
--------------------------------------------------------------------------------------

First-stage regressions
-----------------------


First-stage regression of dpt_tot_prop_w1:

Statistics robust to heteroskedasticity
Number of obs =                     96
--------------------------------------------------------------------------------
               |               Robust
dpt_tot_prop~1 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
sc_anti_exp_w1 |   83986.91   16396.41     5.12   0.000     51140.96    116832.9
 active_exp_w1 |  -129686.1   29703.66    -4.37   0.000    -189189.7   -70182.52
   anti_exp_w1 |   3245.356   2129.031     1.52   0.133    -1019.605    7510.316
           pop |   1196.817   2446.135     0.49   0.627    -3703.379    6097.014
     ann_pr_mx |   .0691345   1.055503     0.07   0.948    -2.045292    2.183561
    avg_tmp_mx |  -114.5955   558.9262    -0.21   0.838    -1234.259    1005.068
               |
            yr |
         2006  |   816.0371    509.377     1.60   0.115    -204.3677    1836.442
         2008  |   3949.757   1090.937     3.62   0.001     1764.348    6135.167
               |
         mx_id |
            2  |  -8649.573   4461.252    -1.94   0.058    -17586.53    287.3883
            3  |  -2096.327    4668.45    -0.45   0.655    -11448.36    7255.702
            4  |  -1228.043   5796.271    -0.21   0.833    -12839.37    10383.28
            5  |  -5014.693   9011.143    -0.56   0.580    -23066.18     13036.8
            6  |  -3736.548   6283.997    -0.59   0.554    -16324.91    8851.811
            7  |  -13831.11   19104.92    -0.72   0.472    -52102.87    24440.64
            8  |  -1333.449   4511.941    -0.30   0.769    -10371.95    7705.056
            9  |  -4461.225   4992.778    -0.89   0.375    -14462.96    5540.511
           10  |    1666.04   2221.302     0.75   0.456    -2783.763    6115.842
           11  |   -19855.7   32161.05    -0.62   0.539    -84282.02    44570.63
           12  |   -2053.95   9532.512    -0.22   0.830    -21149.87    17041.97
           13  |  -3635.111   6295.015    -0.58   0.566    -16245.54     8975.32
           14  |  -3840.347   3618.766    -1.06   0.293    -11089.61    3408.913
           15  |  -9926.637   14314.47    -0.69   0.491    -38601.97     18748.7
           16  |  -5956.062   8149.473    -0.73   0.468    -22281.42    10369.29
           17  |  -1660.528   3175.197    -0.52   0.603    -8021.212    4700.156
           18  |  -1986.508     3095.2    -0.64   0.524    -8186.938    4213.923
           19  |  -6472.169   7947.111    -0.81   0.419    -22392.15    9447.807
           20  |  -3441.319   6536.168    -0.53   0.601    -16534.84    9652.198
           21  |   -8837.42   10705.42    -0.83   0.413    -30282.96    12608.12
           22  |   393.2518   2244.042     0.18   0.862    -4102.104    4888.608
           23  |   618.5919    6036.99     0.10   0.919    -11474.95    12712.14
           24  |  -3613.534    3837.78    -0.94   0.350    -11301.53    4074.463
           25  |  -7373.269   5848.007    -1.26   0.213    -19088.23    4341.696
           26  |  -1888.231   3892.598    -0.49   0.630    -9686.041    5909.579
           27  |  -477.2238    6425.54    -0.07   0.941    -13349.13    12394.68
           28  |  -4917.551    5588.82    -0.88   0.383     -16113.3      6278.2
           29  |   -4239.39   2125.133    -1.99   0.051    -8496.543    17.76222
           30  |  -8408.123   15426.05    -0.55   0.588    -39310.21    22493.97
           31  |  -5872.313   5678.367    -1.03   0.306    -17247.45    5502.824
           32  |    1537.13   1880.891     0.82   0.417    -2230.748    5305.008
               |
         _cons |  -556.7273   12848.55    -0.04   0.966    -26295.47    25182.01
--------------------------------------------------------------------------------
F test of excluded instruments:
  F(  1,    56) =    26.24
  Prob > F      =   0.0000
Sanderson-Windmeijer multivariate F test of excluded instruments:
  F(  1,    56) =    26.24
  Prob > F      =   0.0000



Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,    56)  P-val | SW Chi-sq(  1) P-val | SW F(  1,    56)
dpt_tot_prop |      26.24    0.0000 |       44.98   0.0000 |       26.24

NB: first-stage test statistics heteroskedasticity-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=15.16    P-val=0.0001

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      42.68
Kleibergen-Paap Wald rk F statistic                                26.24

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,56)=        2.30     P-val=0.1347
Anderson-Rubin Wald test           Chi-sq(1)=      3.95     P-val=0.0469
Stock-Wright LM S statistic        Chi-sq(1)=      4.25     P-val=0.0392

NB: Underidentification, weak identification and weak-identification-robust
    test statistics heteroskedasticity-robust

Number of observations               N  =         96
Number of regressors                 K  =         40
Number of endogenous regressors      K1 =          1
Number of instruments                L  =         40
Number of excluded instruments       L1 =          1

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity

                                                      Number of obs =       96
                                                      F( 39,    56) =   180.78
                                                      Prob > F      =   0.0000
Total (centered) SS     =  41594526.82                Centered R2   =   0.9872
Total (uncentered) SS   =   91260492.9                Uncentered R2 =   0.9942
Residual SS             =  530660.7241                Root MSE      =    74.35

---------------------------------------------------------------------------------
                |               Robust
         rem_w1 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
dpt_tot_prop_w1 |   .0107966   .0058861     1.83   0.067    -.0007399    .0223332
  active_exp_w1 |  -318.7746   276.8141    -1.15   0.249    -861.3203    223.7711
    anti_exp_w1 |  -103.9683   86.79687    -1.20   0.231     -274.087    66.15047
            pop |   565.0423   125.8474     4.49   0.000      318.386    811.6987
      ann_pr_mx |   -.224408   .0733805    -3.06   0.002    -.3682312   -.0805849
     avg_tmp_mx |  -5.925982   22.86593    -0.26   0.796    -50.74237    38.89041
                |
             yr |
          2006  |   98.39339   28.03927     3.51   0.000     43.43744    153.3493
          2008  |  -23.31835   44.68558    -0.52   0.602    -110.9005    64.26377
                |
          mx_id |
             2  |  -1134.718   233.4947    -4.86   0.000    -1592.359   -677.0767
             3  |  -133.8024   195.3144    -0.69   0.493    -516.6116    249.0068
             4  |  -14.05181   215.4165    -0.07   0.948    -436.2604    408.1567
             5  |  -1178.462   494.8002    -2.38   0.017    -2148.252   -208.6712
             6  |  -1291.421   323.6806    -3.99   0.000    -1925.823   -657.0188
             7  |  -3432.023     1016.6    -3.38   0.001    -5424.523   -1439.523
             8  |  -1027.329   222.8499    -4.61   0.000    -1464.107   -590.5509
             9  |   279.6051   198.1632     1.41   0.158    -108.7875    667.9978
            10  |  -230.6348   80.25002    -2.87   0.004     -387.922   -73.34765
            11  |  -5753.265   1652.418    -3.48   0.000    -8991.945   -2514.585
            12  |  -440.4489   518.3788    -0.85   0.396    -1456.453    575.5549
            13  |   -98.0529   323.2965    -0.30   0.762    -731.7025    535.5967
            14  |  -194.4126   190.2579    -1.02   0.307    -567.3112    178.4861
            15  |   -1683.25   760.4664    -2.21   0.027    -3173.736   -192.7629
            16  |   565.6009   421.8125     1.34   0.180    -261.1363    1392.338
            17  |   43.39854   153.8267     0.28   0.778    -258.0963    344.8934
            18  |   286.9652   140.4272     2.04   0.041      11.7329    562.1974
            19  |  -1811.736   433.6637    -4.18   0.000    -2661.701   -961.7704
            20  |   -333.553   363.6861    -0.92   0.359    -1046.365    379.2586
            21  |  -1303.461   584.6158    -2.23   0.026    -2449.287   -157.6357
            22  |  -199.8096   102.2925    -1.95   0.051    -400.2991    .6799655
            23  |  -196.4567   233.3264    -0.84   0.400    -653.7679    260.8546
            24  |   -401.171   194.9274    -2.06   0.040    -783.2218   -19.12026
            25  |  -618.3983   261.2574    -2.37   0.018    -1130.453   -106.3431
            26  |  -894.7596   196.8676    -4.54   0.000    -1280.613   -508.9062
            27  |  -478.8334   288.1687    -1.66   0.097    -1043.634    85.96695
            28  |  -960.6194   291.6155    -3.29   0.001    -1532.175   -389.0636
            29  |  -11.34802    106.829    -0.11   0.915    -220.7291     198.033
            30  |  -2058.632   846.5801    -2.43   0.015    -3717.898   -399.3655
            31  |  -448.9526   246.4368    -1.82   0.068    -931.9599    34.05476
            32  |    45.4094   64.73473     0.70   0.483    -81.46834    172.2871
                |
          _cons |   105.1362     575.12     0.18   0.855    -1022.078    1232.351
---------------------------------------------------------------------------------
Underidentification test (Kleibergen-Paap rk LM statistic):             15.164
                                                   Chi-sq(1) P-val =    0.0001
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               42.684
                         (Kleibergen-Paap rk Wald F statistic):         26.238
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         dpt_tot_prop_w1
Included instruments: active_exp_w1 anti_exp_w1 pop ann_pr_mx avg_tmp_mx
                      2006.yr 2008.yr 2.mx_id 3.mx_id 4.mx_id 5.mx_id 6.mx_id
                      7.mx_id 8.mx_id 9.mx_id 10.mx_id 11.mx_id 12.mx_id
                      13.mx_id 14.mx_id 15.mx_id 16.mx_id 17.mx_id 18.mx_id
                      19.mx_id 20.mx_id 21.mx_id 22.mx_id 23.mx_id 24.mx_id
                      25.mx_id 26.mx_id 27.mx_id 28.mx_id 29.mx_id 30.mx_id
                      31.mx_id 32.mx_id
Excluded instruments: sc_anti_exp_w1
------------------------------------------------------------------------------
(est4 stored)

. /* Export table to LATEX using esttab. In LateX, set 'article' as document class, and install 'booktab
> s' and 'threeparttable' packages. Next, add \begin{document} and \end{document} appropriately, then ad
> d \begin{threeparttable} after \begin{table} as well as \end{threeparttable} before \end{table}. After
> , set table font size to \footnotesize. Next, move final eight lines of first table to end of second t
> able. Delete \midrule between the the tables. Penultimately, consolidate notes by moving all of them f
> rom \multicolumn to middle of \begin{tablenotes} and \end{tablenotes}, which should sit between \end{t
> abular} and \end{threeparttable}. Set notes in \scriptsize. Last, put separate terms in Kleibergen-Paa
> p F statistic.  */
. esttab est1 est2 est3 est4 using "$data/iv_anti.tex", replace refcat(dpt_tot_prop "\emph{Second Stage}
> ", nolabel) b(3) se(3) drop(*yr *mx_id) star(* 0.1 ** 0.05 *** 0.01) varlabels(dpt_tot_prop "\hspace{0
> .5cm} Deportations" active_exp "\hspace{0.5cm} Policy" anti_exp "\hspace{0.5cm} Anti-Immigrant Exposur
> e" pop "\hspace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\h
> space{0.5cm} Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber mtitle("\textit{1}" "\textit{
> 2}" "\textit{3}" "\textit{4}") mgroups("\textit{Original}" "\textit{Winsorized (0.5, 99.5)}", pattern(
> 1 0 1 0) prefix(\multicolumn{@span}{c}{)suffix(}) span erepeat(\cmidrule(lr){@span})) title(Effect of 
> Deportations on Mexican States' Annual \newline Remittance Inflows (USD mil.)) rename(dpt_tot_prop_w1 
> dpt_tot_prop active_exp_w1 active_exp anti_exp_w1 anti_exp) stats(N F Fp widstat, fmt(0 3 3 3) label(O
> bservations \(F\) Prob\(>\)F Kleibergen-Paap\(F\)statistic)) addnote("IV regression. Robust standard e
> rrors in parentheses. All models contain state and year fixed effects.") collabels(none) noobs booktab
> s
(file /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_anti.tex not found)
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_anti.tex)

. /* Append first stage results */ 
. esttab est1_dpt_tot_prop est2_dpt_tot_prop est3_dpt_tot_prop_w1 est4_dpt_tot_prop_w1 using "$data/iv_a
> nti.tex", append refcat(sc_anti_exp "\emph{First Stage}", nolabel) b(2) se(2) drop(*yr *mx_id) star(* 
> 0.1 ** 0.05 *** 0.01) nomtitle varlabels(sc_anti_exp "\hspace{0.5cm} Policy $\times$ Anti-Immigrant Ex
> posure" active_exp "\hspace{0.5cm} Policy" anti_exp "\hspace{0.5cm} Anti-Immigrant Exposure" pop "\hsp
> ace{0.5cm} Population (mil.)" ann_pr_mx "\hspace{0.5cm} Precipitation (mm)" avg_tmp_mx "\hspace{0.5cm}
>  Temperature (ºC)" _cons "\hspace{0.5cm} Constant") nonumber rename(sc_anti_exp_w1 sc_anti_exp active_
> exp_w1 active_exp anti_exp_w1 anti_exp) collabels(none) noobs booktabs fragment
(output written to /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/iv_anti.tex)

. 
. /* Close and convert log of commands */
. log close
      name:  <unnamed>
       log:  /Volumes/My Passport for Mac/Summer 2020/M + T/JOP/enforce_remit.log
  log type:  text
 closed on:  24 Nov 2023, 11:58:00
--------------------------------------------------------------------------------------------------------
